]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: move intro() near DEFINE_TEST_MAIN_WITH_INTRO()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 May 2023 09:58:00 +0000 (18:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Jun 2023 05:49:54 +0000 (14:49 +0900)
src/test/test-chase.c

index 558f4109e3f5395572b94886c7933f06dfe909f9..3858600b0eb39bb73de6bdbc0c4bffec00e1042c 100644 (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);