linux/lib/kunit
Mickaël Salaün cde5e1b4a9 kunit: Handle thread creation error
Previously, if a thread creation failed (e.g. -ENOMEM), the function was
called (kunit_catch_run_case or kunit_catch_run_case_cleanup) without
marking the test as failed.  Instead, fill try_result with the error
code returned by kthread_run(), which will mark the test as failed and
print "internal error occurred...".

Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Link: https://lore.kernel.org/r/20240408074625.65017-2-mic@digikod.net
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2024-05-06 14:22:02 -06:00
..
.kunitconfig
assert.c kunit: Don't use a managed alloc in is_literal() 2023-09-18 10:45:30 -06:00
attributes.c kunit: add is_init test attribute 2023-12-18 13:21:15 -07:00
debugfs.c kunit: add ability to run tests after boot using debugfs 2023-12-18 13:25:49 -07:00
debugfs.h
device-impl.h kunit: device: Unregister the kunit_bus on shutdown 2024-02-06 17:07:37 -07:00
device.c kunit: Setup DMA masks on the kunit device 2024-02-27 14:46:35 -07:00
executor_test.c kunit: test: Log the correct filter string in executor_test 2024-02-27 15:25:50 -07:00
executor.c kunit: Mark filter* params as rw 2024-02-27 14:46:34 -07:00
hooks-impl.h
hooks.c
Kconfig kunit: Allow kunit test modules to use test filtering 2023-08-08 13:46:18 -06:00
kunit-example-test.c kunit: Add example of kunit_activate_static_stub() with pointer-to-function 2024-01-03 09:07:23 -07:00
kunit-test.c kunit: Fix a NULL vs IS_ERR() bug 2024-01-22 07:58:12 -07:00
Makefile kunit: Add APIs for managing devices 2023-12-18 13:28:08 -07:00
resource.c
static_stub.c
string-stream-test.c kunit: string-stream-test: Avoid cast warning when testing gfp_t flags 2023-12-18 13:21:14 -07:00
string-stream.c kunit: string-stream: Allow ERR_PTR to be passed to string_stream_destroy() 2023-12-18 13:21:14 -07:00
string-stream.h kunit: string-stream: Decouple string_stream from kunit 2023-09-18 10:45:40 -06:00
test.c kunit: device: Unregister the kunit_bus on shutdown 2024-02-06 17:07:37 -07:00
try-catch-impl.h
try-catch.c kunit: Handle thread creation error 2024-05-06 14:22:02 -06:00