summaryrefslogtreecommitdiff
path: root/tests/spy.test
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-01-19 19:49:12 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-01-19 19:51:36 +0100
commit3474cdc9ff394c7b01db380c4ca2cd42620ff076 (patch)
treef975aa3cd4ca47428c6826965c160f19c46be1e8 /tests/spy.test
parent50fc82ed3e063bc456c491c074bee905f98bd22e (diff)
parentd652a1c0a5bf2f973c5328eed983b4df9ccd284f (diff)
downloadautomake-3474cdc9ff394c7b01db380c4ca2cd42620ff076.tar.gz
Merge branch 'maint'
Diffstat (limited to 'tests/spy.test')
-rwxr-xr-xtests/spy.test14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/spy.test b/tests/spy.test
index 79673d584..f4bd6efbb 100755
--- a/tests/spy.test
+++ b/tests/spy.test
@@ -16,8 +16,8 @@
# Check whether double colon rules work. The Unix V7 make manual
# mentions double-colon rules, but POSIX does not. They seem to be
-# supported by all Make implementation as we can tell. This test case
-# is a spy: we want to detect if there exist implementations where
+# supported by all Make implementation as far as we can tell. This test
+# case is a spy: we want to detect if there exist implementations where
# these do not work. We might use these rules to simplify the rebuild
# rules (instead of the $? hack).
@@ -85,8 +85,18 @@ $sleep
touch b
$MAKE
test "`cat a`" = rule1
+# Ensure a is strictly newer than b, so HP-UX make does not execute rule2.
+$sleep
: > a
$sleep
touch c
$MAKE
test "`cat a`" = rule2
+: > a
+$sleep
+touch b c
+$MAKE
+grep rule1 a
+grep rule2 a
+
+: