Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): add test for parsing an inc...
details: https://anonhg.NetBSD.org/src/rev/5dc7cb668954
branches: trunk
changeset: 936580:5dc7cb668954
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Jul 31 13:49:25 2020 +0000
description:
make(1): add test for parsing an incomplete :t modifier
This looks a lot like undefined behavior, just like in :S and :C before.
diffstat:
usr.bin/make/unit-tests/moderrs.exp | 2 ++
usr.bin/make/unit-tests/moderrs.mk | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r dbef463c685a -r 5dc7cb668954 usr.bin/make/unit-tests/moderrs.exp
--- a/usr.bin/make/unit-tests/moderrs.exp Fri Jul 31 13:43:44 2020 +0000
+++ b/usr.bin/make/unit-tests/moderrs.exp Fri Jul 31 13:49:25 2020 +0000
@@ -97,6 +97,8 @@
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
diff -r dbef463c685a -r 5dc7cb668954 usr.bin/make/unit-tests/moderrs.mk
--- a/usr.bin/make/unit-tests/moderrs.mk Fri Jul 31 13:43:44 2020 +0000
+++ b/usr.bin/make/unit-tests/moderrs.mk Fri Jul 31 13:49:25 2020 +0000
@@ -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-t-parse:
@echo $@:
+ @echo ${FIB:t
@echo ${FIB:txy}
@echo ${FIB:t}
@echo ${FIB:t:M*}
Home |
Main Index |
Thread Index |
Old Index