aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-02-21 21:38:58 +0100
committerTor Egge <Tor.Egge@online.no>2022-02-21 21:41:19 +0100
commit8b12152589ed68f3d08830b0ae581c7eafde89ce (patch)
tree469918049c1abc3c227f57009cd4a85c82cfb3c6
parent91d75605d62b4d0604cfb147f4b97863c9112157 (diff)
Disable mmap resource limit unit test on Darwin.
-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();