Skip to content

Commit 5d8da69

Browse files
Vasily Gorbikhcahca
authored andcommitted
s390/test_unwind: print test suite start/end info
Add couple of additional info lines to make it easier to match test suite output and results. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 13525f0 commit 5d8da69

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

arch/s390/lib/test_unwind.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ do { \
311311
} \
312312
} while (0)
313313

314+
pr_info("running stack unwinder tests");
314315
TEST(UWM_DEFAULT);
315316
TEST(UWM_SP);
316317
TEST(UWM_REGS);
@@ -337,8 +338,13 @@ do { \
337338
TEST(UWM_PGM | UWM_SP | UWM_REGS);
338339
#endif
339340
#undef TEST
341+
if (failed) {
342+
pr_err("%d of %d stack unwinder tests failed", failed, total);
343+
WARN(1, "%d of %d stack unwinder tests failed", failed, total);
344+
} else {
345+
pr_info("all %d stack unwinder tests passed", total);
346+
}
340347

341-
WARN(failed, "%d of %d unwinder tests failed", failed, total);
342348
return failed ? -EINVAL : 0;
343349
}
344350

0 commit comments

Comments
 (0)