mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +00:00
LibTest: Add EXPECT_CRASH_WITH_SIGNAL
This commit is contained in:
parent
b1b94692e6
commit
4c6e826c05
6 changed files with 52 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue