Ali Mohammad Pur
2110e7cf85
Everywhere: Add support for compilation under emscripten
...
Co-Authored-By: Andrew Kaster <akaster@serenityos.org>
2022-11-26 02:23:15 +03:30
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Michel Hermier
7a44c11378
LibTest: Add EXPECT_NO_CRASH
2021-12-19 14:22:06 -08:00
Michel Hermier
4c6e826c05
LibTest: Add EXPECT_CRASH_WITH_SIGNAL
2021-12-19 14:22:06 -08:00
Michel Hermier
b1b94692e6
LibTest: Handle test reporting in the a unique path
2021-12-19 14:22:06 -08:00
Michel Hermier
2f8fac3528
LibTest: Change Crash
forked process communication
...
Now it returns `Failure` value via `exit`, and the caller is
responsible of reporting errors to the user.
2021-12-19 14:22:06 -08:00
Michel Hermier
c8cabd433a
LibTest: Handle Crash printing in a private method
2021-12-19 14:22:06 -08:00
Andrew Kaster
b7ae561945
LibTest: Clear core dump flag for CrashTest child processes
...
Because these processes are expected to crash, generating a core dump
from them and throwing up a CrashReporter window is less helpful than
it is distracting while running many tests at a time.
Use the prctl for controlling the core dump-able flag to tell the kernel
we don't want core dumps from these processes. Note that because we also
build LibTest for Lagom, we have to check for MacOS which doesn't
support prctl(PR_SET_DUMPABLE).
2021-07-06 17:22:45 +02:00
Brian Gianforcaro
4b8b8b91c2
LibTest: Convert Crash test runner to outln(..)
2021-05-08 00:04:10 +01:00
Brian Gianforcaro
7f51754780
LibTest: Expose new EXPECT_CRASH(..) macro for unit test assertions
...
Utilize the Crash type we imported into LibTest to support testing
of crash scenarios when testing all other components.
2021-05-08 00:04:10 +01:00
Brian Gianforcaro
4c0d3f47e1
LibTest: Move Crash testing facility from crash.cpp to LibTest
2021-05-08 00:04:10 +01:00