Module Name: src
Committed By: rillig
Date: Fri Jul 31 13:49:25 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: moderrs.exp moderrs.mk
Log Message:
make(1): add test for parsing an incomplete :t modifier
This looks a lot like undefined behavior, just like in :S and :C before.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/make/unit-tests/moderrs.exp
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/make/unit-tests/moderrs.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/moderrs.exp
diff -u src/usr.bin/make/unit-tests/moderrs.exp:1.11 src/usr.bin/make/unit-tests/moderrs.exp:1.12
--- src/usr.bin/make/unit-tests/moderrs.exp:1.11 Fri Jul 31 13:30:09 2020
+++ src/usr.bin/make/unit-tests/moderrs.exp Fri Jul 31 13:49:25 2020
@@ -97,6 +97,8 @@ make: Bad modifier `:ts\65oct' for FIB
make: Bad modifier `:tsxy' for FIB
xy}
mod-t-parse:
+make: Bad modifier `:t' for FIB
+
make: Bad modifier `:txy' for FIB
y}
make: Bad modifier `:t' for FIB
Index: src/usr.bin/make/unit-tests/moderrs.mk
diff -u src/usr.bin/make/unit-tests/moderrs.mk:1.9 src/usr.bin/make/unit-tests/moderrs.mk:1.10
--- src/usr.bin/make/unit-tests/moderrs.mk:1.9 Fri Jul 31 13:30:09 2020
+++ src/usr.bin/make/unit-tests/moderrs.mk Fri Jul 31 13:49:25 2020
@@ -1,4 +1,4 @@
-# $Id: moderrs.mk,v 1.9 2020/07/31 13:30:09 rillig Exp $
+# $Id: moderrs.mk,v 1.10 2020/07/31 13:49:25 rillig Exp $
#
# various modifier error tests
@@ -135,6 +135,7 @@ mod-ts-parse:
mod-t-parse:
@echo $@:
+ @echo ${FIB:t
@echo ${FIB:txy}
@echo ${FIB:t}
@echo ${FIB:t:M*}