From 26b55149eec554d0c3a605b3556eaa5e5b7fa392 Mon Sep 17 00:00:00 2001 From: Peter Ekberg Date: Thu, 28 Jul 2005 10:55:35 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ tests/mdemo-dryrun.test | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index f2998f55..119a86b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-28 Peter Ekberg + + * 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 * m4/libtool.m4 (_LT_LINKER_OPTION): Fix copy-paste bug, it is diff --git a/tests/mdemo-dryrun.test b/tests/mdemo-dryrun.test index 7e55536e..d6ad86ca 100755 --- a/tests/mdemo-dryrun.test +++ b/tests/mdemo-dryrun.test @@ -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