test: move intro() near DEFINE_TEST_MAIN_WITH_INTRO()

This commit is contained in:
Yu Watanabe
2023-05-30 18:58:00 +09:00
parent d7aef22724
commit c0dff4205b

View File

@@ -643,11 +643,6 @@ TEST(chaseat) {
result = mfree(result);
}
static int intro(void) {
arg_test_dir = saved_argv[1];
return EXIT_SUCCESS;
}
TEST(chaseat_prefix_root) {
_cleanup_free_ char *cwd = NULL, *ret = NULL, *expected = NULL;
@@ -685,4 +680,9 @@ TEST(chaseat_prefix_root) {
assert_se(streq(ret, expected));
}
static int intro(void) {
arg_test_dir = saved_argv[1];
return EXIT_SUCCESS;
}
DEFINE_TEST_MAIN_WITH_INTRO(LOG_INFO, intro);