selftests/nolibc: show failed run if test process crashes
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 9 Jul 2025 15:55:10 +0000 (17:55 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 9 Jul 2025 16:28:36 +0000 (18:28 +0200)
commit750aef513c610a37a13732ec64902428b839715e
treedfba5a3a11417fe03024348ac9dd15c833d9084b
parentf6f6be0c4faf0e0faa3ed5253458186c2d598226
selftests/nolibc: show failed run if test process crashes

The logic would not catch if the test process crashes and would
incorrectly report a "success" state. Fix this by looking for the final
"Total number of errors:" message and printing "failure" if it was not
seen.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://lore.kernel.org/r/20250709155512.971080-2-benjamin@sipsolutions.net
[Thomas: fix patch prefix]
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/Makefile.nolibc