From 951bfec45e12df9860c666c52903cdb0118317fb Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Tue, 12 Sep 2023 07:31:10 +0200 Subject: kit_test: signals --- source/tests/test_signals.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'source/tests/test_signals.cpp') 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 #include -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; -- cgit v1.2.3