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 usr.bin/make: fix typo in dollar test



details:   https://anonhg.NetBSD.org/src/rev/85c281df59ae
branches:  trunk
changeset: 971949:85c281df59ae
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun May 10 13:03:40 2020 +0000

description:
usr.bin/make: fix typo in dollar test

diffstat:

 usr.bin/make/unit-tests/dollar.exp |  4 ++--
 usr.bin/make/unit-tests/dollar.mk  |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 2e350b6c965e -r 85c281df59ae usr.bin/make/unit-tests/dollar.exp
--- a/usr.bin/make/unit-tests/dollar.exp        Sun May 10 12:42:11 2020 +0000
+++ b/usr.bin/make/unit-tests/dollar.exp        Sun May 10 13:03:40 2020 +0000
@@ -15,8 +15,8 @@
       4 dollar variable => <$$>
 Some hungry part of make eats all the dollars after a :U modifier.
    1 dollar var-default => <>
-   2 dollar var-default => <>
-   4 dollar var-default => <>
+   2 dollar var-default => <$>
+   4 dollar var-default => <$$>
 
 Dollar in :S pattern
 
diff -r 2e350b6c965e -r 85c281df59ae usr.bin/make/unit-tests/dollar.mk
--- a/usr.bin/make/unit-tests/dollar.mk Sun May 10 12:42:11 2020 +0000
+++ b/usr.bin/make/unit-tests/dollar.mk Sun May 10 13:03:40 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dollar.mk,v 1.1 2020/05/10 12:34:01 rillig Exp $
+# $NetBSD: dollar.mk,v 1.2 2020/05/10 13:03:40 rillig Exp $
 #
 # Test the various places where a dollar character can appear and
 # see what happens.  There are lots of surprises here.
@@ -38,9 +38,9 @@
        $T      '4 dollar variable'     ''${DOLLAR4:Q}
 
        $C 'Some hungry part of make eats all the dollars after a :U modifier.'
-       $T      '1 dollar var-default'  ''${U:${DOLLAR1}:Q}
-       $T      '2 dollar var-default'  ''${U:${DOLLAR2}:Q}
-       $T      '4 dollar var-default'  ''${U:${DOLLAR4}:Q}
+       $T      '1 dollar var-default'  ''${:U${DOLLAR1}:Q}
+       $T      '2 dollar var-default'  ''${:U${DOLLAR2}:Q}
+       $T      '4 dollar var-default'  ''${:U${DOLLAR4}:Q}
 
        $H 'Dollar in :S pattern'
 



Home | Main Index | Thread Index | Old Index