mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
26 lines
510 B
C++
26 lines
510 B
C++
/*
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibTest/TestCase.h>
|
|
|
|
#include <assert.h> // FIXME: Remove when `_abort` is moved to <stdlib.h>
|
|
#include <stdlib.h>
|
|
|
|
TEST_CASE(_abort)
|
|
{
|
|
EXPECT_CRASH("This should _abort", [] {
|
|
_abort();
|
|
return Test::Crash::Failure::DidNotCrash;
|
|
});
|
|
}
|
|
|
|
TEST_CASE(abort)
|
|
{
|
|
EXPECT_CRASH("This should abort", [] {
|
|
abort();
|
|
return Test::Crash::Failure::DidNotCrash;
|
|
});
|
|
}
|