1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibTest: Add EXPECT_NO_CRASH

This commit is contained in:
Michel Hermier 2021-12-15 00:47:43 +01:00 committed by Brian Gianforcaro
parent 4c6e826c05
commit 7a44c11378
5 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
TEST_CASE(raise)
{
EXPECT_NO_CRASH("This should never crash", [] {
return Test::Crash::Failure::DidNotCrash;
});
}