mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 16:04:59 +00:00
![]() Before, TEST_MAIN used to return the return value of TestSuite::main() function (which returns the number of test cases that did not pass, so it can be >=256) directly. The run-tests utility determines the success / failure of a test suite binary by examining its (or i.e. TEST_MAIN's) exit status. But as exit status values are supposed to be between 0 and 255, values >=256 will get wrapped around (modulo 256), converting a return value of 256 to 0. So, in a rare case where exactly 256 test cases are failing in your test suite, run-tests utility will display that the test suite passed without any failures. Now, TEST_MAIN just returns 0 if all of the test cases pass and returns 1 otherwise. |
||
---|---|---|
.. | ||
Randomized | ||
CMakeLists.txt | ||
CrashTest.cpp | ||
CrashTest.h | ||
JavaScriptTestRunner.h | ||
JavaScriptTestRunnerMain.cpp | ||
Macros.h | ||
Results.h | ||
TestCase.h | ||
TestMain.cpp | ||
TestResult.h | ||
TestRunner.h | ||
TestRunnerUtil.h | ||
TestSuite.cpp | ||
TestSuite.h |