diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-14 14:44:00 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-14 14:44:00 +0200 |
commit | 2e4093b4cb22a8ec89a61e9d177bff2b50fbf98d (patch) | |
tree | ef4c966599cbc531fcbbe0abb5f193d27c7e4421 | |
parent | 8caac521e06ad12f6476c9d59ab1afdd1b11d4a8 (diff) |
Skip some tests on Darwin due to setrlimit being partially broken.
-rw-r--r-- | vespalib/src/tests/exception_classes/silenceuncaught_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp index ebb98823033..f94a298d19f 100644 --- a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp +++ b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp @@ -35,6 +35,9 @@ TEST("that mmap within limits are fine cause exitcode 0") { EXPECT_EQUAL(proc.getExitCode(), 0); } +#ifdef __APPLE__ +// setrlimit with RLIMIT_AS is broken on Darwin +#else TEST("that mmap beyond limits cause negative exitcode.") { SlaveProc proc("ulimit -c 0 && exec ./vespalib_mmap_app 100000000 10485760 10"); proc.wait(); @@ -46,5 +49,6 @@ TEST("that mmap beyond limits with set VESPA_SILENCE_CORE_ON_OOM cause exitcode proc.wait(); EXPECT_EQUAL(proc.getExitCode(), 66); } +#endif TEST_MAIN_WITH_PROCESS_PROXY() { TEST_RUN_ALL(); } |