summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests')
-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;