diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-05 10:19:42 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-05 10:19:42 +0000 |
commit | 1be7e8b0848377f52622fc8306640e6325a40c52 (patch) | |
tree | c9b4f78e6146b92c5627def813570169c15eb0ab /vespalib/src/tests/exception_classes/silenceuncaught_test.cpp | |
parent | ffe0351586b3d50f477e59d6a9947cd1d1dedc44 (diff) |
It was not as easy as it should have been.
Diffstat (limited to 'vespalib/src/tests/exception_classes/silenceuncaught_test.cpp')
-rw-r--r-- | vespalib/src/tests/exception_classes/silenceuncaught_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp index 3b1ba49de5c..3e13e1d8606 100644 --- a/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp +++ b/vespalib/src/tests/exception_classes/silenceuncaught_test.cpp @@ -17,6 +17,12 @@ TEST("that uncaught silenced exception causes exitcode 66") { EXPECT_EQUAL(proc.getExitCode(), 66); } +TEST("that caught silenced exception followed by an uncaught causes exitcode 0") { + SlaveProc proc("./vespalib_caught_uncaught_app uncaught_after_silenced_and_caught"); + proc.wait(); + EXPECT_LESS(proc.getExitCode(), 0); +} + TEST("that caught silenced exception causes exitcode 0") { SlaveProc proc("./vespalib_caught_uncaught_app silenced_and_caught"); proc.wait(); |