summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibTest/Macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibTest/Macros.h')
-rw-r--r--Userland/Libraries/LibTest/Macros.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibTest/Macros.h b/Userland/Libraries/LibTest/Macros.h
index d883da655f..d0dca516aa 100644
--- a/Userland/Libraries/LibTest/Macros.h
+++ b/Userland/Libraries/LibTest/Macros.h
@@ -127,3 +127,10 @@ void current_test_case_did_fail();
if (!crash.run()) \
::Test::current_test_case_did_fail(); \
} while (false)
+
+#define EXPECT_CRASH_WITH_SIGNAL(test_message, signal, test_func) \
+ do { \
+ Test::Crash crash(test_message, test_func, (signal)); \
+ if (!crash.run()) \
+ ::Test::current_test_case_did_fail(); \
+ } while (false)