Skip to content

Commit

Permalink
tools/nolibc: tests: constify test_names
Browse files Browse the repository at this point in the history
Nothing ever modifies this structure.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
  • Loading branch information
Thomas Weißschuh authored and Paul E. McKenney committed Mar 27, 2023
1 parent 8c934d4 commit c4560bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/nolibc/nolibc-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ int prepare(void)
}

/* This is the definition of known test names, with their functions */
static struct test test_names[] = {
static const struct test test_names[] = {
/* add new tests here */
{ .name = "syscall", .func = run_syscall },
{ .name = "stdlib", .func = run_stdlib },
Expand Down

0 comments on commit c4560bd

Please sign in to comment.