diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-12 07:31:10 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-12 07:31:10 +0200 |
commit | 951bfec45e12df9860c666c52903cdb0118317fb (patch) | |
tree | 49e22690a5a604b0c94bba4d34a783b112cfab12 | |
parent | 89d27f50b642e67b15de6be8254bae2c00d77852 (diff) | |
download | kit-951bfec45e12df9860c666c52903cdb0118317fb.zip |
kit_test: signals
-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; |