diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-20 13:41:30 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-20 13:41:30 +0200 |
commit | a1e6428b072f89e70b77b1cc8ac2c085f669bbcf (patch) | |
tree | 14b3ef00c4e562965e83f1484016f7bf8058a194 /vespalib | |
parent | eb5129002b5a3053882273707666b7c7786b4e6d (diff) |
Handle version of echo not understanding -n option.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/slaveproc/slaveproc_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vespalib/src/tests/slaveproc/slaveproc_test.cpp b/vespalib/src/tests/slaveproc/slaveproc_test.cpp index 7a39d4f1c7b..6d570f02b3a 100644 --- a/vespalib/src/tests/slaveproc/slaveproc_test.cpp +++ b/vespalib/src/tests/slaveproc/slaveproc_test.cpp @@ -19,7 +19,11 @@ TEST("simple run, ignore output, timeout") { TEST("simple run") { std::string out; EXPECT_TRUE(SlaveProc::run("echo -n foo", out)); +#ifdef __APPLE__ + EXPECT_EQUAL(out, "-n foo"); +#else EXPECT_EQUAL(out, "foo"); +#endif } TEST("simple run, strip single-line trailing newline") { |