summaryrefslogtreecommitdiff
path: root/test/ut.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-20 14:25:59 -0700
committerTom Rini <trini@konsulko.com>2025-01-24 14:34:41 -0600
commit0925659a5226ee70dab8b4d3e9c8aba9ec586548 (patch)
tree652ca8bf305fdbb1263636f96a482aeacc8e0e10 /test/ut.c
parentbbff0b165c170598c100dac81a5ee58fb07ed3ae (diff)
test: Move stats into a struct
Use a struct to hold the stats, since we also want to have the same stats for all runs as we have for each suite. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/ut.c')
-rw-r--r--test/ut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ut.c b/test/ut.c
index 7454da3e001..a16fdfb3a93 100644
--- a/test/ut.c
+++ b/test/ut.c
@@ -21,7 +21,7 @@ void ut_fail(struct unit_test_state *uts, const char *fname, int line,
{
gd->flags &= ~(GD_FLG_SILENT | GD_FLG_RECORD);
printf("%s:%d, %s(): %s\n", fname, line, func, cond);
- uts->fail_count++;
+ uts->cur.fail_count++;
}
void ut_failf(struct unit_test_state *uts, const char *fname, int line,
@@ -35,7 +35,7 @@ void ut_failf(struct unit_test_state *uts, const char *fname, int line,
vprintf(fmt, args);
va_end(args);
putc('\n');
- uts->fail_count++;
+ uts->cur.fail_count++;
}
ulong ut_check_free(void)