]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fixed test for checking of header file regeneration.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 21 Sep 2007 06:42:00 +0000 (06:42 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 21 Sep 2007 06:42:00 +0000 (06:42 +0000)
The test now sleeps one second and uses ctime only to check for a
change.

darcs-hash:20070921064228-f2ef6-db7bee6a91da7ebf3919ed6fd912bfb100f3c7ae.gz

tests/headers/generated/runtest

index c7a61280110df385ff38d25df17eaab39359f77e..6979c56bc9a478b6fdba377afc2ca64ed6ff0ca8 100755 (executable)
@@ -16,8 +16,9 @@ LC=$(find _build -wholename '*/lincan/lincan_config.h')
 test -f "$LC" || canttest "Can't find the produced local config"
 grep -Fv "/* config file:" $LC | diff -u correct/lincan_config.h - || error "Local config differs"
 
-stat $LC > stat.log1
+stat -c '%z' $LC > stat.log1
+sleep 1
 touch config.omk-default
 make
-stat $LC > stat.log2
+stat -c '%z' $LC > stat.log2
 diff stat.log1 stat.log2 || error "Generated config changed without without reason"