1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:58:12 +00:00
serenity/Userland/Libraries/LibTest
Andreas Kling c364520c24 LibJS+js+test-js: Add GC debug mode that keeps cells "alive" as zombies
This patch adds a `-z` option to js and test-js. When run in this mode,
garbage cells are never actually destroyed. We instead keep them around
in a special zombie state.

This allows us to validate that zombies don't get marked in future GC
scans (since there were not supposed to be any more references!) :^)

Cells get notified when they become a zombie (via did_become_zombie())
and this is used by WeakContainer cells to deregister themselves from
the heap.
2021-09-11 16:52:03 +02:00
..
CMakeLists.txt Meta/LibTest: Build object libraries for test main files 2021-07-29 21:46:25 +01:00
CrashTest.cpp LibTest: Clear core dump flag for CrashTest child processes 2021-07-06 17:22:45 +02:00
CrashTest.h LibTest: Expose new EXPECT_CRASH(..) macro for unit test assertions 2021-05-08 00:04:10 +01:00
JavaScriptTestRunner.h LibJS+js+test-js: Add GC debug mode that keeps cells "alive" as zombies 2021-09-11 16:52:03 +02:00
JavaScriptTestRunnerMain.cpp LibJS+js+test-js: Add GC debug mode that keeps cells "alive" as zombies 2021-09-11 16:52:03 +02:00
Macros.h Everywhere: Use AK/Math.h if applicable 2021-07-19 16:34:21 +04:30
Results.h Base+Utilities: Add run-tests program to run system tests with LibTest 2021-06-30 08:18:28 +04:30
TestCase.h LibTest: Add TEST_SETUP macro that runs before all test cases 2021-08-31 16:53:51 +02:00
TestMain.cpp AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
TestRunner.h LibTest+Utilities: Print a start message before each test in run-tests 2021-08-19 18:42:34 +02:00
TestSuite.cpp LibTest: Add TEST_SETUP macro that runs before all test cases 2021-08-31 16:53:51 +02:00
TestSuite.h LibTest: Add TEST_SETUP macro that runs before all test cases 2021-08-31 16:53:51 +02:00