summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-11-02 13:37:04 -0600
committerTom Rini <[email protected]>2024-11-13 11:56:02 -0600
commit4f570b36aa00fe094af9107b50fa60083cf765ab (patch)
treedb2acbe1def955d08718e5ac96f28108f8cfaf42 /test
parent88db4fc5fec20429881896740df61d402b4b1f66 (diff)
test: Correct display of failing test
This should show the test name, not the selected name, since the user may be running all tests, in which case 'select_name' is NULL Fix it. Signed-off-by: Simon Glass <[email protected]> Tested-by: Tom Rini <[email protected]> # rpi_3, rpi_4, rpi_arm64, am64x_evm_a53, am64-sk
Diffstat (limited to 'test')
-rw-r--r--test/test-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-main.c b/test/test-main.c
index da5b07ce00b..e4f42689da4 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -622,7 +622,7 @@ static int ut_run_tests(struct unit_test_state *uts, const char *prefix,
for (i = 0; i < uts->runs_per_test; i++)
ret = ut_run_test_live_flat(uts, test);
if (uts->fail_count != old_fail_count) {
- printf("Test %s failed %d times\n", select_name,
+ printf("Test %s failed %d times\n", test_name,
uts->fail_count - old_fail_count);
}
found++;