diff options
author | Mickaël Salaün <[email protected]> | 2024-05-11 19:14:38 +0200 |
---|---|---|
committer | Mickaël Salaün <[email protected]> | 2024-05-11 19:18:43 +0200 |
commit | fff37bd32c7605d93bf900c4c318d56d12000048 (patch) | |
tree | 951901b05920cc62f678bea03c64c10ac016d143 /scripts/bpf_doc.py | |
parent | 7e4042abe2ee7c0977fd8bb049a6991b174a5e6f (diff) |
selftests/harness: Fix fixture teardown
Make sure fixture teardowns are run when test cases failed, including
when _metadata->teardown_parent is set to true.
Make sure only one fixture teardown is run per test case, handling the
case where the test child forks.
Cc: Jakub Kicinski <[email protected]>
Cc: Shengyu Li <[email protected]>
Cc: Shuah Khan <[email protected]>
Fixes: 72d7cb5c190b ("selftests/harness: Prevent infinite loop due to Assert in FIXTURE_TEARDOWN")
Fixes: 0710a1a73fb4 ("selftests/harness: Merge TEST_F_FORK() into TEST_F()")
Reviewed-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Rule: add
Link: https://lore.kernel.org/stable/20240506165518.474504-4-mic%40digikod.net
Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions