]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - test/dm/test-main.c
dm: test: Show the test filename when running
[people/ms/u-boot.git] / test / dm / test-main.c
index 2848673e06fd592a83c762ccca9119b12d7f7b60..10d2706377fafc70419eaaff39133b26191897aa 100644 (file)
@@ -75,8 +75,9 @@ static int dm_test_destroy(struct unit_test_state *uts)
 static int dm_do_test(struct unit_test_state *uts, struct unit_test *test)
 {
        struct sandbox_state *state = state_get_current();
+       const char *fname = strrchr(test->file, '/') + 1;
 
-       printf("Test: %s\n", test->name);
+       printf("Test: %s: %s\n", test->name, fname);
        ut_assertok(dm_test_init(uts));
 
        uts->start = mallinfo();