diff options
| author | Simon Glass <[email protected]> | 2025-01-20 14:25:39 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-01-24 14:34:40 -0600 |
| commit | ca917e491f81916ef4accc34615680ffae161430 (patch) | |
| tree | 9983619c169230c062a9e9100da60a5e1bd955ea | |
| parent | 3e5e638e62574fa1f9989f2fd35dd9dd7b6d72b5 (diff) | |
test: Drop the function for running exit tests
Use the new suite-runner to run these tests instead.
Signed-off-by: Simon Glass <[email protected]>
| -rw-r--r-- | include/test/suites.h | 1 | ||||
| -rw-r--r-- | test/cmd/exit.c | 9 | ||||
| -rw-r--r-- | test/cmd_ut.c | 2 |
3 files changed, 1 insertions, 11 deletions
diff --git a/include/test/suites.h b/include/test/suites.h index b78436fe2b2..70b9af1fd05 100644 --- a/include/test/suites.h +++ b/include/test/suites.h @@ -37,7 +37,6 @@ int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); -int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_font(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_hush(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); diff --git a/test/cmd/exit.c b/test/cmd/exit.c index d1eacdc36c2..71c37edcdf6 100644 --- a/test/cmd/exit.c +++ b/test/cmd/exit.c @@ -110,12 +110,3 @@ static int cmd_exit_test(struct unit_test_state *uts) return 0; } EXIT_TEST(cmd_exit_test, UTF_CONSOLE); - -int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) -{ - struct unit_test *tests = UNIT_TEST_SUITE_START(exit); - const int n_ents = UNIT_TEST_SUITE_COUNT(exit); - - return cmd_ut_category("exit", "exit_test_", tests, n_ents, - argc, argv); -} diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 155b187ad4b..387aacb916b 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -138,7 +138,7 @@ static struct suite suites[] = { #if defined(CONFIG_UT_ENV) SUITE(env), #endif - SUITE_CMD(exit, do_ut_exit), + SUITE(exit), #ifdef CONFIG_CMD_FDT SUITE_CMD(fdt, do_ut_fdt), #endif |
