]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Merge branch 'maint'
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 20 Mar 2013 21:26:25 +0000 (22:26 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 20 Mar 2013 21:26:25 +0000 (22:26 +0100)
* maint:
  Fix test suite failure on GCC 4.8
  Comment spelling fix

Conflicts:
test.sh

1  2 
test.sh

diff --cc test.sh
index 716721958017a85d32f274d5c1b6bcd5814cfc55,3e3838712aecb402b89bd070b1c46c616e44a1c6..8c52b12d675c442e7d98b05cb240159a24c5ca70
+++ b/test.sh
@@@ -821,9 -680,7 +824,9 @@@ EO
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    CCACHE_DISABLE=1 $COMPILER -c -Wp,-MD,other.d test.c -o reference_test.o
 +    compare_file reference_test.o test.o
  
      rm -f other.d
  
      checkstat 'cache hit (direct)' 1
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      rm -f other.d
  
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    CCACHE_DISABLE=1 $COMPILER -c -Wp,-MMD,other.d test.c -o reference_test.o
 +    compare_file reference_test.o test.o
  
      rm -f other.d
  
      checkstat 'cache hit (direct)' 1
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      rm -f other.d
  
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile test.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile test.d "$expected_d_content"
 +    CCACHE_DISABLE=1 $COMPILER -c -MD test.c -o reference_test.o
 +    compare_file reference_test.o test.o
  
      rm -f test.d
  
      checkstat 'cache hit (direct)' 1
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile test.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile test.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      ##################################################################
      # Check the scenario of running a ccache with direct mode on a cache
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile test.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile test.d "$expected_d_content"
 +    CCACHE_DISABLE=1 $COMPILER -c -MD test.c -o reference_test.o
 +    compare_file reference_test.o test.o
  
      rm -f test.d
  
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 1
      checkstat 'cache miss' 1
-     checkfile test.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile test.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      rm -f test.d
  
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 2
      checkstat 'cache miss' 1
-     checkfile test.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile test.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      rm -f test.d
  
      checkstat 'cache hit (direct)' 1
      checkstat 'cache hit (preprocessed)' 2
      checkstat 'cache miss' 1
-     checkfile test.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile test.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      ##################################################################
      # Check that -MF works.
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    CCACHE_DISABLE=1 $COMPILER -c -MD -MF other.d test.c -o reference_test.o
 +    compare_file reference_test.o test.o
  
      rm -f other.d
  
      checkstat 'cache hit (direct)' 1
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      ##################################################################
      # Check that a missing .d file in the cache is handled correctly.
      checkstat 'cache hit (direct)' 0
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    CCACHE_DISABLE=1 $COMPILER -c -MD test.c -o reference_test.o
 +    compare_file reference_test.o test.o
  
      $CCACHE $COMPILER -c -MD test.c
      checkstat 'cache hit (direct)' 1
      checkstat 'cache hit (preprocessed)' 0
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      find $CCACHE_DIR -name '*.d' -exec rm -f '{}' \;
  
      checkstat 'cache hit (direct)' 1
      checkstat 'cache hit (preprocessed)' 1
      checkstat 'cache miss' 1
-     checkfile other.d "test.o: test.c test1.h test3.h test2.h"
+     checkfile other.d "$expected_d_content"
 +    compare_file reference_test.o test.o
  
      ##################################################################
      # Check that stderr from both the preprocessor and the compiler is emitted