aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/exception_classes/silenceuncaught_test.cpp4
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(); }