Serenity Operating System
at master 17 lines 338 B view raw
1/* 2 * Copyright (c) 2021, the SerenityOS developers. 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#include <LibTest/TestCase.h> 8 9#include <signal.h> 10 11TEST_CASE(raise) 12{ 13 EXPECT_CRASH_WITH_SIGNAL("This should raise a SIGUSR1 signal", SIGUSR1, [] { 14 raise(SIGUSR1); 15 return Test::Crash::Failure::DidNotCrash; 16 }); 17}