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): fix typo in newly added Sys...



details:   https://anonhg.NetBSD.org/src/rev/fc3054135acd
branches:  trunk
changeset: 936666:fc3054135acd
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Aug 01 12:47:56 2020 +0000

description:
make(1): fix typo in newly added SysV modifier test case

I should have been more suspicious when all my test cases succeeded at
the first try.

diffstat:

 usr.bin/make/unit-tests/sysv.mk |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r cabaed561f53 -r fc3054135acd usr.bin/make/unit-tests/sysv.mk
--- a/usr.bin/make/unit-tests/sysv.mk   Sat Aug 01 12:39:40 2020 +0000
+++ b/usr.bin/make/unit-tests/sysv.mk   Sat Aug 01 12:47:56 2020 +0000
@@ -1,4 +1,4 @@
-# $Id: sysv.mk,v 1.10 2020/08/01 12:04:00 rillig Exp $
+# $Id: sysv.mk,v 1.11 2020/08/01 12:47:56 rillig Exp $
 
 all: foo fun sam bla words ampersand anchor-dollar
 all: mismatch
@@ -76,20 +76,20 @@
 EXPR.2=        ${LIST:o=}
 EXP.2= one tw
 EXPR.3=        ${LIST:o=%}
-EXP.3= one twtwo
+EXP.3= one tw%
 EXPR.4=        ${LIST:%o=X}
 EXP.4= one X
 EXPR.5=        ${LIST:o%=X}
-EXP.5= X twX
+EXP.5= X two
 EXPR.6=        ${LIST:o%e=X}
-EXP.6= oXe two
+EXP.6= X two
 EXPR.7=        ${LIST:o%%e=X}          # Only the first '%' is the wildcard.
 EXP.7= one two                 # None of the words contains a literal '%'.
 EXPR.8=        ${LIST:%=%%}
-EXP.8= oneone twotwo
+EXP.8= one% two%
 
 .for i in ${:U:range=8}
-.if ${EXPR.1} != ${EXP.1}
-.warning expected "${EXP.$i}", got "${EXPR.$i}
+.if ${EXPR.$i} != ${EXP.$i}
+.warning test case $i expected "${EXP.$i}", got "${EXPR.$i}
 .endif
 .endfor



Home | Main Index | Thread Index | Old Index