Message ID | 20240408074625.65017-2-mic@digikod.net (mailing list archive) |
---|---|
State | Mainlined |
Commit | cde5e1b4a90486b4ac731ee43e4e0152cc16887b |
Headers | show |
Series | Handle faults in KUnit tests | expand |
diff --git a/lib/kunit/try-catch.c b/lib/kunit/try-catch.c index f7825991d576..a5cb2ef70a25 100644 --- a/lib/kunit/try-catch.c +++ b/lib/kunit/try-catch.c @@ -69,6 +69,7 @@ void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context) try_catch, "kunit_try_catch_thread"); if (IS_ERR(task_struct)) { + try_catch->try_result = PTR_ERR(task_struct); try_catch->catch(try_catch->context); return; }