Fix flakey mdemo-dryrun test on MSYS (again!)

* tests/mdemo-dryrun.test: ls -l in MSYS sometimes shows year,
not time, for really fresh files. Add sleep 1 call at yet another
strategic position. Makes the test pass reliably for MSYS/MinGW.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
This commit is contained in:
Peter Rosin 2009-01-14 09:04:40 +01:00
parent 4efe88d335
commit a2939b133b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-01-14 Peter Rosin <peda@lysator.liu.se>
Fix flakey mdemo-dryrun test on MSYS (again!)
* tests/mdemo-dryrun.test: ls -l in MSYS sometimes shows year,
not time, for really fresh files. Add sleep 1 call at yet another
strategic position. Makes the test pass reliably for MSYS/MinGW.
2008-12-19 Akim Demaille <demaille@gostai.com>
Fix copyright notice.

View File

@ -99,6 +99,8 @@ func_make install
func_msg "Running $MAKE uninstall in ../mdemo (dry run)"
# Libtool does not uninstall the programs, remove them first
rm -f "$prefix/bin/mdemo$EXEEXT" "$prefix/bin/mdemo_static$EXEEXT"
# ls -l in MSYS sometimes shows year, not time, for really fresh files.
sleep 1
ls -l . $objdir | grep -v total > $before
ls -lR $prefix | grep -v total >> $before
force_dry_run=: $MAKE uninstall 1>&2 || exit $?