From 3db84aab196c77ef7f69401bcdb3e3828b11dc95 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 21 Sep 2007 06:42:00 +0000 Subject: [PATCH] Fixed test for checking of header file regeneration. 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/headers/generated/runtest b/tests/headers/generated/runtest index c7a6128..6979c56 100755 --- a/tests/headers/generated/runtest +++ b/tests/headers/generated/runtest @@ -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" -- 2.39.2