]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Correct include file distrust test case
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 25 May 2010 16:43:09 +0000 (18:43 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 25 May 2010 16:43:09 +0000 (18:43 +0200)
test.sh

diff --git a/test.sh b/test.sh
index 7c13ff5fe7d0d1ed68b2e57777ccedf4848c1d24..8b9c0b370b8beddf7b8a91097553c0903464408e 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -988,7 +988,9 @@ EOF
 #!/bin/sh
 CCACHE_DISABLE=1 # If $COMPILER happens to be a ccache symlink...
 export CCACHE_DISABLE
-[ x\$2 = "x-E" ] && touch \$3 # Be sure that mtime >= time_of_compilation
+stat new.h >>/tmp/stat.log
+[ x\$2 = "x-E" ] && touch new.h # Be sure that mtime >= time_of_compilation
+stat new.h >>/tmp/stat.log
 exec $COMPILER "\$@"
 EOF
     chmod +x $touchy_compiler
@@ -1017,7 +1019,7 @@ EOF
 #!/bin/sh
 CCACHE_DISABLE=1 # If $COMPILER happens to be a ccache symlink...
 export CCACHE_DISABLE
-[ x\$2 = "x-E" ] && touch \$3 # Be sure that mtime >= time_of_compilation
+[ x\$2 = "x-E" ] && touch new.h # Be sure that mtime >= time_of_compilation
 exec $COMPILER "\$@"
 EOF
     chmod +x $touchy_compiler