mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
selftests: kselftest_harness: save full exit code in metadata
Instead of tracking passed = 0/1 rename the field to exit_code and invert the values so that they match the KSFT_* exit codes. This will allow us to fold SKIP / XFAIL into the same value. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
38c957f070
commit
69fe8ec4f6
@@ -307,7 +307,7 @@ TEST(ruleset_fd_transfer)
|
||||
dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
|
||||
ASSERT_LE(0, dir_fd);
|
||||
ASSERT_EQ(0, close(dir_fd));
|
||||
_exit(_metadata->passed ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
_exit(_metadata->exit_code);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user