]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
selftests/nolibc: rename vfprintf test suite
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 11 Apr 2025 09:00:53 +0000 (11:00 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 22 Apr 2025 08:59:05 +0000 (10:59 +0200)
With the addition of snprintf() and its usage in nolibc-test, the name of
the "vfprintf" test suite is not accurate anymore.

Rename the suite to be more generic.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c

index 1874199b2cf641d9f231147b338d211c27600caa..5fb4319545d51d7fd7c7630b7cfc702435890f42 100644 (file)
@@ -1389,7 +1389,7 @@ static int test_scanf(void)
        return 0;
 }
 
-static int run_vfprintf(int min, int max)
+static int run_printf(int min, int max)
 {
        int test;
        int ret = 0;
@@ -1551,7 +1551,7 @@ static const struct test test_names[] = {
        { .name = "startup",    .func = run_startup    },
        { .name = "syscall",    .func = run_syscall    },
        { .name = "stdlib",     .func = run_stdlib     },
-       { .name = "vfprintf",   .func = run_vfprintf   },
+       { .name = "printf",     .func = run_printf     },
        { .name = "protection", .func = run_protection },
        { 0 }
 };