We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f453cc3 commit 323feb3Copy full SHA for 323feb3
tools/testing/selftests/kselftest_harness.h
@@ -462,9 +462,13 @@ static inline pid_t clone3_vfork(void)
462
munmap(teardown, sizeof(*teardown)); \
463
if (self && fixture_name##_teardown_parent) \
464
munmap(self, sizeof(*self)); \
465
- if (!WIFEXITED(status) && WIFSIGNALED(status)) \
+ if (WIFEXITED(status)) { \
466
+ if (WEXITSTATUS(status)) \
467
+ _metadata->exit_code = WEXITSTATUS(status); \
468
+ } else if (WIFSIGNALED(status)) { \
469
/* Forward signal to __wait_for_test(). */ \
470
kill(getpid(), WTERMSIG(status)); \
471
+ } \
472
__test_check_assert(_metadata); \
473
} \
474
static struct __test_metadata *_##fixture_name##_##test_name##_object; \
0 commit comments