]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve test case order
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Oct 2019 18:58:34 +0000 (20:58 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Oct 2019 18:58:34 +0000 (20:58 +0200)
unittest/test_argument_processing.c

index 6eceb78bca7a033794d5be5af888db6fc14f2536..3a2d0ed37adbca5ae66cbe8984b9bb90689e5acf 100644 (file)
@@ -188,10 +188,10 @@ TEST(MQ_flag_should_not_be_added_for_standard_obj_extension)
        args_free(orig);
 }
 
-TEST(equal_sign_after_MF_should_be_removed)
+TEST(MQ_flag_should_be_added_for_non_standard_obj_extension)
 {
-       struct args *orig = args_init_from_string("cc -c -MF=path foo.c -o foo.o");
-       struct args *exp_cpp = args_init_from_string("cc -MFpath");
+       struct args *orig = args_init_from_string("cc -c -MD foo.c -o foo.obj");
+       struct args *exp_cpp = args_init_from_string("cc -MD -MF foo.d -MQ foo.obj");
        struct args *exp_cc = args_init_from_string("cc -c");
        struct args *act_cpp = NULL, *act_cc = NULL;
        create_file("foo.c", "");
@@ -203,10 +203,10 @@ TEST(equal_sign_after_MF_should_be_removed)
        args_free(orig);
 }
 
-TEST(MQ_flag_should_be_added_for_non_standard_obj_extension)
+TEST(equal_sign_after_MF_should_be_removed)
 {
-       struct args *orig = args_init_from_string("cc -c -MD foo.c -o foo.obj");
-       struct args *exp_cpp = args_init_from_string("cc -MD -MF foo.d -MQ foo.obj");
+       struct args *orig = args_init_from_string("cc -c -MF=path foo.c -o foo.o");
+       struct args *exp_cpp = args_init_from_string("cc -MFpath");
        struct args *exp_cc = args_init_from_string("cc -c");
        struct args *act_cpp = NULL, *act_cc = NULL;
        create_file("foo.c", "");