mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +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
|
@ -10,7 +10,7 @@
|
|||
|
||||
TEST_CASE(raise)
|
||||
{
|
||||
EXPECT_CRASH("This should raise a SIGUSR1 signal", [] {
|
||||
EXPECT_CRASH_WITH_SIGNAL("This should raise a SIGUSR1 signal", SIGUSR1, [] {
|
||||
raise(SIGUSR1);
|
||||
return Test::Crash::Failure::DidNotCrash;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue