1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibTest: Do not cleanly exit when abort() is called

Instead, do the cleanup, remove the signal handler, and abort() again.
This commit is contained in:
Ali Mohammad Pur 2021-05-26 23:03:58 +04:30 committed by Ali Mohammad Pur
parent 578bf6c45e
commit 13c1514889
2 changed files with 17 additions and 2 deletions

View file

@ -181,11 +181,16 @@ inline void TestRunnerGlobalObject::initialize_global_object()
}
}
inline void cleanup_and_exit()
inline void cleanup()
{
// Clear the taskbar progress.
if (TestRunner::the() && TestRunner::the()->is_printing_progress())
warn("\033]9;-1;\033\\");
}
inline void cleanup_and_exit()
{
cleanup();
exit(1);
}