ladybird/Tests/LibC/TestRaise.cpp

18 lines
338 B
C++
Raw Normal View History

2021-12-17 17:16:06 +00:00
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <signal.h>
TEST_CASE(raise)
{
EXPECT_CRASH_WITH_SIGNAL("This should raise a SIGUSR1 signal", SIGUSR1, [] {
2021-12-17 17:16:06 +00:00
raise(SIGUSR1);
return Test::Crash::Failure::DidNotCrash;
});
}