diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-21 21:49:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 21:49:42 +0100 |
commit | dc5882d2695456341d77a326b84a2df0464bec47 (patch) | |
tree | 03c033771a183a48c38f09ea77264ed112dd9d1d | |
parent | 7a3ad31e30da313e7206aa66e6f99af758ffc769 (diff) | |
parent | 8b12152589ed68f3d08830b0ae581c7eafde89ce (diff) |
Merge pull request #21298 from vespa-engine/toregge/disable-mmap-limit-test-on-darwinv7.547.18
Disable mmap resource limit unit test on Darwin.
-rw-r--r-- | vespalib/src/tests/exception_classes/silenceuncaught_test.cpp | 6 |
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(); |