[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix parallel-tests.test failure with HP-UX make

From: Ralf Wildenhues
Subject: Fix parallel-tests.test failure with HP-UX make
Date: Sun, 16 Jan 2011 12:17:20 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Now that we know HP-UX make updates files with the same time stamp as
their prerequisites, it is obvious how to fix the long-standing
parallel-tests.test failure.  Pushing to maint as below.


    Fix parallel-tests.test failure with HP-UX make.
    * tests/parallel-tests.test: Sleep inside inner tests, so logs
    are newer than logs of tests they depend on, for HP-UX make.

diff --git a/tests/parallel-tests.test b/tests/parallel-tests.test
index 29111c2..399b23b 100755
--- a/tests/parallel-tests.test
+++ b/tests/parallel-tests.test
@@ -41,14 +41,19 @@ foo.log: bar.log
 bar.log: baz.log
+# foo.test and bar.test sleep to ensure their logs are always strictly newer
+# than the logs of their prerequisites, for HP-UX make.  The quoting pleases
+# maintainer-check.
 cat >>foo.test <<'END'
 #! /bin/sh
 echo "this is $0"
+sleep '1'
 exit 0
 cat >>bar.test <<'END'
 #! /bin/sh
 echo "this is $0"
+sleep '1'
 exit 99
 cat >>baz.test <<'END'

reply via email to

[Prev in Thread] Current Thread [Next in Thread]