[Top][All Lists]

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

tests: less strict double-colon spy.test.

From: Ralf Wildenhues
Subject: tests: less strict double-colon spy.test.
Date: Thu, 20 Jan 2011 21:31:16 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

I wasn't completely sure about the documentation in spy.test, but a
recheck shows that FreeBSD, NetBSD, and OpenBSD make do not invoke both
rules if the target is out of date wrt. both prerequisites.  So let's
make the spy less strict again so it has a chance to pass on all known
systems at least.  I'm leaving the code in, commented, so there's no
way confusing the explanation another time.

For maint again.


    tests: less strict double-colon spy.test again.
    * tests/spy.test: We know BSD make doesn't invoke more than one
    double-colon rule, so no need to expose that failure.

diff --git a/tests/spy.test b/tests/spy.test
index ab68a61..5f1a87b 100755
--- a/tests/spy.test
+++ b/tests/spy.test
@@ -94,11 +94,15 @@ $sleep
 touch c
 test "`cat a`" = rule2
-: > a
-touch b c
-grep rule1 a
-grep rule2 a
+# Unfortunately, the following is not portable to FreeBSD/NetBSD/OpenBSD
+# make, see explanation above.
+#: > a
+#touch b c
+#grep rule1 a
+#grep rule2 a

reply via email to

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