mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
TestSuite: Hijack the ASSERT macros during unit tests.
Instead of aborting the program when we hit an assertion, just print a message and keep going. This allows us to write tests that provoke assertions on purpose.
This commit is contained in:
parent
31793b8f3a
commit
6560116b67
7 changed files with 22 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifndef AK_TEST_SUITE
|
||||
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/Assertions.h>
|
||||
#else
|
||||
|
@ -11,6 +13,8 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
namespace AK {
|
||||
|
||||
inline void not_implemented() { ASSERT(false); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue