linux-kernelorg-stable/lib/kunit
Brendan Jackman c33b68801f kunit: make FAULT_TEST default to n when PANIC_ON_OOPS
As describe in the help string, the user might want to disable these
tests if they don't like to see stacktraces/BUG etc in their kernel log.

However, if they enable PANIC_ON_OOPS, these tests also crash the
machine, which it's safe to assume _almost_ nobody wants.

One might argue that _absolutely_ nobody ever wants their kernel to
crash so this should just be a hard dependency instead of a default.
However, since this is rather special code that's anyway concerned with
deliberately doing "bad" things, the normal rules don't seem to apply,
hence prefer flexibility and allow users to set up a crashing Kconfig if
they so choose.

Link: https://lore.kernel.org/r/20251207-kunit-fault-no-panic-v1-1-2ac932f26864@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2025-12-15 09:27:19 -07:00
..
.kunitconfig
Kconfig kunit: make FAULT_TEST default to n when PANIC_ON_OOPS 2025-12-15 09:27:19 -07:00
Makefile kunit: Always descend into kunit directory during build 2025-08-15 11:39:46 -06:00
assert.c
assert_test.c
attributes.c
debugfs.c
debugfs.h
device-impl.h
device.c kunit: Drop unused parameter from kunit_device_register_internal 2025-12-15 09:27:19 -07:00
executor.c kunit: Make filter parameters configurable via Kconfig 2025-11-14 11:02:34 -07:00
executor_test.c
hooks-impl.h
hooks.c
kunit-example-test.c kunit: Add example parameterized test with direct dynamic parameter array setup 2025-08-26 23:36:03 -06:00
kunit-test.c kunit: test_dev_action: Correctly cast 'priv' pointer to long* 2025-10-20 13:08:05 -06:00
platform-test.c
platform.c
resource.c
static_stub.c
string-stream-test.c
string-stream.c
string-stream.h
test.c kunit: prevent log overwrite in param_tests 2025-10-27 11:13:31 -06:00
try-catch-impl.h kunit: Adjust kunit_test timeout based on test_{suite,case} speed 2025-06-24 20:47:39 -06:00
try-catch.c kunit: Adjust kunit_test timeout based on test_{suite,case} speed 2025-06-24 20:47:39 -06:00
user_alloc.c kunit: test: Export kunit_attach_mm() 2025-07-16 14:11:58 +02:00