diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/tests/test_signals.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source/tests/test_signals.cpp b/source/tests/test_signals.cpp index 0062aa6..13c3ca6 100644 --- a/source/tests/test_signals.cpp +++ b/source/tests/test_signals.cpp @@ -4,15 +4,23 @@ #include <cstdlib> #include <stdexcept> -TEST("c++ exception") { +TEST("c++ std::exception") { throw std::exception(); } -TEST("abort") { +TEST("c++ int exception") { + throw 42; +} + +TEST("c++ string exception") { + throw "foo bar"; +} + #ifndef _WIN32 +TEST("abort") { abort(); -#endif } +#endif TEST("invalid access") { *(volatile int *) nullptr = 42; |