mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Everywhere: Remove Serenity specific code from tests
We no longer run our tests on Serenity.
This commit is contained in:
committed by
Andreas Kling
parent
66662496e6
commit
23eba28c22
@@ -544,22 +544,15 @@ static bool g_in_assert = false;
|
||||
// FIXME: Use a SIGABRT handler here instead of overriding internal libc assertion handlers.
|
||||
// Fixing this will likely require updating the test driver as well to pull the assertion failure
|
||||
// message out of stderr rather than from the json object printed to stdout.
|
||||
#ifdef AK_OS_SERENITY
|
||||
void __assertion_failed(char const* assertion)
|
||||
{
|
||||
handle_failed_assert(assertion);
|
||||
}
|
||||
#else
|
||||
# ifdef ASSERT_FAIL_HAS_INT /* Set by CMake */
|
||||
#ifdef ASSERT_FAIL_HAS_INT /* Set by CMake */
|
||||
extern "C" __attribute__((__noreturn__)) void __assert_fail(char const* assertion, char const* file, int line, char const* function)
|
||||
# else
|
||||
#else
|
||||
extern "C" __attribute__((__noreturn__)) void __assert_fail(char const* assertion, char const* file, unsigned int line, char const* function)
|
||||
# endif
|
||||
#endif
|
||||
{
|
||||
auto full_message = ByteString::formatted("{}:{}: {}: Assertion `{}' failed.", file, line, function, assertion);
|
||||
handle_failed_assert(full_message.characters());
|
||||
}
|
||||
#endif
|
||||
|
||||
constexpr int exit_wrong_arguments = 2;
|
||||
constexpr int exit_stdout_setup_failed = 1;
|
||||
|
||||
Reference in New Issue
Block a user