Module Name:    src
Committed By:   sjg
Date:           Mon Apr 11 15:10:15 UTC 2011

Modified Files:
        src/usr.bin/make/unit-tests: modmisc test.exp

Log Message:
Add a test case for sysV modifier subst


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/modmisc
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/make/unit-tests/test.exp

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/modmisc
diff -u src/usr.bin/make/unit-tests/modmisc:1.6 src/usr.bin/make/unit-tests/modmisc:1.7
--- src/usr.bin/make/unit-tests/modmisc:1.6	Fri Apr 23 15:43:28 2010
+++ src/usr.bin/make/unit-tests/modmisc	Mon Apr 11 15:10:15 2011
@@ -1,4 +1,4 @@
-# $Id: modmisc,v 1.6 2010/04/23 15:43:28 sjg Exp $
+# $Id: modmisc,v 1.7 2011/04/11 15:10:15 sjg Exp $
 #
 # miscellaneous modifier tests
 
@@ -15,7 +15,10 @@
 MOD_OPT=@d@$${exists($$d):?$$d:$${d:S,/usr,/opt,}}@
 MOD_SEP=S,:, ,g
 
-all:	modvar modvarloop
+all:	modvar modvarloop modsysv
+
+modsysv:
+	@echo "The answer is ${libfoo.a:L:libfoo.a=42}"
 
 modvar:
 	@echo "path='${path}'"

Index: src/usr.bin/make/unit-tests/test.exp
diff -u src/usr.bin/make/unit-tests/test.exp:1.36 src/usr.bin/make/unit-tests/test.exp:1.37
--- src/usr.bin/make/unit-tests/test.exp:1.36	Thu Apr  7 01:40:02 2011
+++ src/usr.bin/make/unit-tests/test.exp	Mon Apr 11 15:10:15 2011
@@ -128,6 +128,7 @@
 path_/usr/xbin=/opt/xbin/
 paths=/bin /tmp / /no/such/dir /opt/xbin
 PATHS=/BIN /TMP / /NO/SUCH/DIR /OPT/XBIN
+The answer is 42
 LIST      = one two three four five six seven eight nine ten
 LIST:O    = eight five four nine one seven six ten three two
 LIST:Ox   = Ok

Reply via email to