From: Joel Rosdahl Date: Sun, 30 May 2010 11:42:54 +0000 (+0200) Subject: Make tests for include file trustability resistent to unsynchronized clocks X-Git-Tag: v3.0~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b1205ab2ddc30b3e0847063e99c4369ca143fba;p=thirdparty%2Fccache.git Make tests for include file trustability resistent to unsynchronized clocks --- diff --git a/test.sh b/test.sh index a51c9cff5..0a9dcba8b 100755 --- a/test.sh +++ b/test.sh @@ -980,7 +980,7 @@ EOF #!/bin/sh CCACHE_DISABLE=1 # If $COMPILER happens to be a ccache symlink... export CCACHE_DISABLE -[ x\$2 = "x-E" ] && touch new.h # Be sure that mtime >= time_of_compilation +[ x\$2 = "x-E" ] && touch -t `date +%Y%m%d%H%M.%S` new.h # Be sure that mtime >= time_of_compilation exec $COMPILER "\$@" EOF chmod +x $touchy_compiler @@ -1009,7 +1009,7 @@ EOF #!/bin/sh CCACHE_DISABLE=1 # If $COMPILER happens to be a ccache symlink... export CCACHE_DISABLE -[ x\$2 = "x-E" ] && touch new.h # Be sure that mtime >= time_of_compilation +[ x\$2 = "x-E" ] && touch -t `date +%Y%m%d%H%M.%S` new.h # Be sure that mtime >= time_of_compilation exec $COMPILER "\$@" EOF chmod +x $touchy_compiler