]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Clean up
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 19 Sep 2015 14:24:26 +0000 (16:24 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 19 Sep 2015 14:24:26 +0000 (16:24 +0200)
ccache.c
test/test_argument_processing.c

index 79ae0e83fabea31a355779a4dbec14430329c1e9..621f67808f40960c5e407f445e710b264b2146b2 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -805,7 +805,7 @@ put_file_in_cache(const char *source, const char *dest)
                ret = link(source, dest);
        } else {
                ret = copy_file(
-                       source, dest, conf->compression ? conf->compression_level : 0);
+                 source, dest, conf->compression ? conf->compression_level : 0);
        }
        if (ret != 0) {
                cc_log("Failed to %s %s to %s: %s",
index 5f75654a05a7d1d87fc1b7ce99e408d90cdd47e6..0ecefd1b3607decb31ac5aad78bc6578448180f1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2013 Joel Rosdahl
+ * Copyright (C) 2010-2015 Joel Rosdahl
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the Free
@@ -127,7 +127,7 @@ TEST(sysroot_should_be_rewritten_if_basedir_is_used)
        orig = args_init_from_string(arg_string);
 
        CHECK(cc_process_args(orig, &act_cpp, &act_cc));
-       CHECK(str_startswith(act_cpp->argv[1], "--sysroot=./foo"));
+       CHECK_STR_EQ(act_cpp->argv[1], "--sysroot=./foo");
 
        args_free(orig);
        args_free(act_cpp);
@@ -278,7 +278,7 @@ TEST(fprofile_flag_with_existing_dir_should_be_rewritten_to_real_path)
        args_free(orig);
 }
 
-TEST(fprofile_flag_with_nonexisting_dir_not_be_rewritten)
+TEST(fprofile_flag_with_nonexisting_dir_should_not_be_rewritten)
 {
        struct args *orig = args_init_from_string(
          "gcc -c -fprofile-generate=some/dir foo.c");