* tests/mdemo-dryrun.test: ls -l in MSYS sometimes shows year,

not time, for really fresh files. Add sleep 1 calls at
strategic places. Makes the test pass for MinGW.
This commit is contained in:
Peter Ekberg 2005-07-28 10:55:35 +00:00 committed by Peter Rosin
parent 715a3e709d
commit 26b55149ee
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-07-28 Peter Ekberg <peda@lysator.liu.se>
* tests/mdemo-dryrun.test: ls -l in MSYS sometimes shows year,
not time, for really fresh files. Add sleep 1 calls at
strategic places. Makes the test pass for MinGW.
2005-07-28 Peter Ekberg <peda@lysator.liu.se>
* m4/libtool.m4 (_LT_LINKER_OPTION): Fix copy-paste bug, it is

View File

@ -50,6 +50,8 @@ mv $objdir/libtool.new libtool
func_make main.$objext
func_msg "Making object files in mdemo (dry run)"
# ls -l in MSYS sometimes shows year, not time, for really fresh files.
sleep 1
ls -l . $objdir | grep -v total > $before
force_dry_run=: $MAKE foo1.lo foo2.lo sub.lo || exit $?
ls -l . $objdir | grep -v total > $after
@ -58,6 +60,8 @@ cmp $before $after > /dev/null || exit 1
func_make foo1.lo foo2.lo libsub.la
func_msg "Making libraries in mdemo (dry run)"
# ls -l in MSYS sometimes shows year, not time, for really fresh files.
sleep 1
ls -l . $objdir | grep -v total > $before
force_dry_run=: $MAKE foo1.la libfoo2.la || exit $?
ls -l . $objdir | grep -v total > $after
@ -66,6 +70,8 @@ cmp $before $after > /dev/null || exit 1
func_make foo1.la libfoo2.la
func_msg "Making programs in ../mdemo (dry run)"
# ls -l in MSYS sometimes shows year, not time, for really fresh files.
sleep 1
ls -l . $objdir | grep -v total > $before
force_dry_run=: $MAKE mdemo$EXEEXT mdemo_static$EXEEXT 1>&2 || exit $?
ls -l . $objdir | grep -v total > $after
@ -77,6 +83,8 @@ func_msg "Running $MAKE install in ../mdemo (dry run)"
# Libtool does not create these directories
func_mkdir_p "$prefix/bin"
func_mkdir_p "$prefix/lib"
# 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 install 1>&2 || exit 1