summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-12 07:31:10 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-12 07:31:10 +0200
commit951bfec45e12df9860c666c52903cdb0118317fb (patch)
tree49e22690a5a604b0c94bba4d34a783b112cfab12 /source
parent89d27f50b642e67b15de6be8254bae2c00d77852 (diff)
downloadkit-951bfec45e12df9860c666c52903cdb0118317fb.zip
kit_test: signals
Diffstat (limited to 'source')
-rw-r--r--source/tests/test_signals.cpp14
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;