From 8b12152589ed68f3d08830b0ae581c7eafde89ce Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Mon, 21 Feb 2022 21:38:58 +0100 Subject: Disable mmap resource limit unit test on Darwin. --- vespalib/src/tests/exception_classes/silenceuncaught_test.cpp | 6 +++--- 1 file 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(); -- cgit v1.2.3