From: Joel Rosdahl Date: Thu, 3 Oct 2019 18:58:34 +0000 (+0200) Subject: Improve test case order X-Git-Tag: v3.7.5~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aa9b5a4f3ae19181d910e3a0ce0bbb6066b2d6b;p=thirdparty%2Fccache.git Improve test case order --- diff --git a/unittest/test_argument_processing.c b/unittest/test_argument_processing.c index 6eceb78bc..3a2d0ed37 100644 --- a/unittest/test_argument_processing.c +++ b/unittest/test_argument_processing.c @@ -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", "");