]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Tweak test case to test changes in a68ccd96
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 9 Dec 2018 18:20:00 +0000 (19:20 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 9 Dec 2018 18:20:00 +0000 (19:20 +0100)
unittest/test_argument_processing.c

index fb30c98498b262c511789fed7efd6e32630255f2..319c833cd6474021a73f0512d39b0c3c13391643 100644 (file)
@@ -184,12 +184,12 @@ TEST(sysroot_should_be_rewritten_if_basedir_is_used)
        free(conf->base_dir);
        conf->base_dir = get_root();
        current_working_dir = get_cwd();
-       arg_string = format("cc --sysroot=%s/foo -c foo.c", current_working_dir);
+       arg_string = format("cc --sysroot=%s/foo/bar -c foo.c", current_working_dir);
        orig = args_init_from_string(arg_string);
        free(arg_string);
 
        CHECK(cc_process_args(orig, &act_cpp, &act_cc));
-       CHECK_STR_EQ(act_cpp->argv[1], "--sysroot=./foo");
+       CHECK_STR_EQ(act_cpp->argv[1], "--sysroot=./foo/bar");
 
        args_free(orig);
        args_free(act_cpp);