[LTP] [RFC][PATCH 3/3] lib/tst_test.c: Print failure hints also for TBROK
Petr Vorel
pvorel@suse.cz
Mon Sep 25 17:13:19 CEST 2023
Some kernel/libc bugs are not causing TFAIL, but also TBROK,
e.g. clone04 failure on musl, which does:
tst_test.c:1632: TBROK: Test killed by SIGSEGV!
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
lib/tst_test.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/tst_test.c b/lib/tst_test.c
index 179f697b7..0dec00be4 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -880,8 +880,10 @@ static void do_exit(int ret)
if (results->warnings)
ret |= TWARN;
- if (results->broken)
+ if (results->broken) {
ret |= TBROK;
+ print_failure_hints();
+ }
fprintf(stderr, "\nSummary:\n");
fprintf(stderr, "passed %d\n", results->passed);
--
2.40.1
More information about the ltp
mailing list