diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-10-19 19:13:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 19:13:51 +0200 |
commit | 90910378997a66eca8dd3f2ee268aa7cd94e122e (patch) | |
tree | d596dd1c614dc26ad3bf741ccedf48de5e61ba0b /vespalib | |
parent | 283909a0e54baca5cb9f9725e5f848ac245f7aa2 (diff) | |
parent | 5fef84b38cf037a4753f133a849440b05c977a37 (diff) |
Merge pull request #916 from yahoo/jvenstad/dump-cores-when-expected-to
ulimit -c 0 only when needed
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/exception_classes/silenceuncaught_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp index 532bd314279..2aced12fc68 100644 --- a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp +++ b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp @@ -12,7 +12,7 @@ TEST("that uncaught exception causes negative exitcode.") { } TEST("that uncaught silenced exception causes exitcode 66") { - SlaveProc proc("ulimit -c 0 && exec ./vespalib_caught_uncaught_app silenced_and_uncaught"); + SlaveProc proc("exec ./vespalib_caught_uncaught_app silenced_and_uncaught"); proc.wait(); EXPECT_EQUAL(proc.getExitCode(), 66); } @@ -24,13 +24,13 @@ TEST("that caught silenced exception followed by an uncaught causes negative exi } TEST("that caught silenced exception causes exitcode 0") { - SlaveProc proc("ulimit -c 0 && exec ./vespalib_caught_uncaught_app silenced_and_caught"); + SlaveProc proc("exec ./vespalib_caught_uncaught_app silenced_and_caught"); proc.wait(); EXPECT_EQUAL(proc.getExitCode(), 0); } TEST("that mmap within limits are fine cause exitcode 0") { - SlaveProc proc("ulimit -c 0 && exec ./vespalib_mmap_app 100000000 10485760 1"); + SlaveProc proc("exec ./vespalib_mmap_app 100000000 10485760 1"); proc.wait(); EXPECT_EQUAL(proc.getExitCode(), 0); } @@ -42,7 +42,7 @@ TEST("that mmap beyond limits cause negative exitcode.") { } TEST("that mmap beyond limits with set VESPA_SILENCE_CORE_ON_OOM cause exitcode 66.") { - SlaveProc proc("ulimit -c 0 && VESPA_SILENCE_CORE_ON_OOM=1 exec ./vespalib_mmap_app 100000000 10485760 10"); + SlaveProc proc("VESPA_SILENCE_CORE_ON_OOM=1 exec ./vespalib_mmap_app 100000000 10485760 10"); proc.wait(); EXPECT_EQUAL(proc.getExitCode(), 66); } |