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 tests/make: add position marker in t...
details: https://anonhg.NetBSD.org/src/rev/54cb0f4b108d
branches: trunk
changeset: 960351:54cb0f4b108d
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Mar 15 17:11:08 2021 +0000
description:
tests/make: add position marker in test 'varmod-loop'
diffstat:
usr.bin/make/unit-tests/varmod-loop.exp | 7 ++++---
usr.bin/make/unit-tests/varmod-loop.mk | 3 ++-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 1f4347c529db -r 54cb0f4b108d usr.bin/make/unit-tests/varmod-loop.exp
--- a/usr.bin/make/unit-tests/varmod-loop.exp Mon Mar 15 16:51:14 2021 +0000
+++ b/usr.bin/make/unit-tests/varmod-loop.exp Mon Mar 15 17:11:08 2021 +0000
@@ -1,11 +1,12 @@
-ParseReadLine (132): 'USE_8_DOLLARS= ${:U1:@var@${8_DOLLARS}@} ${8_DOLLARS} $$$$$$$$'
+ParseReadLine (133): 'USE_8_DOLLARS= ${:U1:@var@${8_DOLLARS}@} ${8_DOLLARS} $$$$$$$$'
CondParser_Eval: ${USE_8_DOLLARS} != "\$\$\$\$ \$\$\$\$ \$\$\$\$"
lhs = "$$$$ $$$$ $$$$", rhs = "$$$$ $$$$ $$$$", op = !=
-ParseReadLine (137): 'SUBST_CONTAINING_LOOP:= ${USE_8_DOLLARS}'
+ParseReadLine (138): 'SUBST_CONTAINING_LOOP:= ${USE_8_DOLLARS}'
CondParser_Eval: ${SUBST_CONTAINING_LOOP} != "\$\$ \$\$\$\$ \$\$\$\$"
lhs = "$$ $$$$ $$$$", rhs = "$$ $$$$ $$$$", op = !=
-ParseReadLine (162): '.MAKEFLAGS: -d0'
+ParseReadLine (163): '.MAKEFLAGS: -d0'
ParseDoDependency(.MAKEFLAGS: -d0)
+mod-loop-varname:
:+one+ +two+ +three+:
:x1y x2y x3y:
:x1y x2y x3y:
diff -r 1f4347c529db -r 54cb0f4b108d usr.bin/make/unit-tests/varmod-loop.mk
--- a/usr.bin/make/unit-tests/varmod-loop.mk Mon Mar 15 16:51:14 2021 +0000
+++ b/usr.bin/make/unit-tests/varmod-loop.mk Mon Mar 15 17:11:08 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: varmod-loop.mk,v 1.11 2021/03/15 12:15:03 rillig Exp $
+# $NetBSD: varmod-loop.mk,v 1.12 2021/03/15 17:11:08 rillig Exp $
#
# Tests for the :@var@...${var}...@ variable modifier.
@@ -14,6 +14,7 @@
# will ever depend on this, but technically it's possible.
# Therefore, in -dL mode, this is forbidden, see lint.mk.
mod-loop-varname:
+ @echo $@:
@echo :${:Uone two three:@${:Ubar:S,b,v,}@+${var}+@:Q}:
# ":::" is a very creative variable name, unlikely in practice.
Home |
Main Index |
Thread Index |
Old Index