aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vespalib/src/tests/exception_classes/silenceuncaught_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp
index db1ead00986..6c757b00af6 100644
--- a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp
+++ b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp
@@ -38,15 +38,15 @@ TEST("that caught silenced exception causes exitcode 0") {
}
#ifndef __SANITIZE_ADDRESS__
+#ifdef __APPLE__
+// setrlimit with RLIMIT_AS is broken on Darwin
+#else
TEST("that mmap within limits are fine cause exitcode 0") {
ChildProcess proc("exec ./vespalib_mmap_app 150000000 10485760 1");
proc.wait();
EXPECT_EQUAL(proc.getExitCode(), 0);
}
-#ifdef __APPLE__
-// setrlimit with RLIMIT_AS is broken on Darwin
-#else
TEST("that mmap beyond limits cause negative exitcode.") {
ChildProcess proc("ulimit -c 0 && exec ./vespalib_mmap_app 100000000 10485760 10");
proc.wait();