Module Name: src
Committed By: sjg
Date: Tue Jun 9 01:48:17 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: modorder.exp modorder.mk
Log Message:
Add test case for :Or
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/modorder.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/modorder.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/modorder.exp
diff -u src/usr.bin/make/unit-tests/modorder.exp:1.1 src/usr.bin/make/unit-tests/modorder.exp:1.2
--- src/usr.bin/make/unit-tests/modorder.exp:1.1 Thu Aug 21 13:44:51 2014
+++ src/usr.bin/make/unit-tests/modorder.exp Tue Jun 9 01:48:17 2020
@@ -1,5 +1,6 @@
LIST = one two three four five six seven eight nine ten
LIST:O = eight five four nine one seven six ten three two
+LIST:Or = two three ten six seven one nine four five eight
LIST:Ox = Ok
LIST:O:Ox = Ok
LISTX = Ok
Index: src/usr.bin/make/unit-tests/modorder.mk
diff -u src/usr.bin/make/unit-tests/modorder.mk:1.2 src/usr.bin/make/unit-tests/modorder.mk:1.3
--- src/usr.bin/make/unit-tests/modorder.mk:1.2 Tue Jan 7 22:42:14 2020
+++ src/usr.bin/make/unit-tests/modorder.mk Tue Jun 9 01:48:17 2020
@@ -1,4 +1,4 @@
-# $NetBSD: modorder.mk,v 1.2 2020/01/07 22:42:14 rillig Exp $
+# $NetBSD: modorder.mk,v 1.3 2020/06/09 01:48:17 sjg Exp $
LIST= one two three four five six seven eight nine ten
LISTX= ${LIST:Ox}
@@ -10,6 +10,7 @@ TEST_RESULT= && echo Ok || echo Failed
all:
@echo "LIST = ${LIST}"
@echo "LIST:O = ${LIST:O}"
+ @echo "LIST:Or = ${LIST:Or}"
# Note that 1 in every 10! trials two independently generated
# randomized orderings will be the same. The test framework doesn't
# support checking probabilistic output, so we accept that each of the