diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-19 23:14:47 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-19 23:14:47 +0200 |
commit | d8065a142d21037b1d38f22562117d91ae59d4c8 (patch) | |
tree | 015b12e0867c8c38f3b699e66dd18bb99010304a | |
parent | 007d059c1f57b689e0e1501977aecccfaee75c43 (diff) |
/proc/stat is linux specific.
-rw-r--r-- | vespalib/src/tests/stllike/asciistream_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vespalib/src/tests/stllike/asciistream_test.cpp b/vespalib/src/tests/stllike/asciistream_test.cpp index fd362d9c49a..c9435edea45 100644 --- a/vespalib/src/tests/stllike/asciistream_test.cpp +++ b/vespalib/src/tests/stllike/asciistream_test.cpp @@ -387,8 +387,10 @@ AsciistreamTest::testCreateFromFile() EXPECT_EQUAL("", s); EXPECT_TRUE(is.eof()); +#ifdef __linux__ is = asciistream::createFromDevice("/proc/stat"); EXPECT_FALSE(is.eof()); +#endif } void |