Sun Oct 11 06:32:15 2015 UTC ()
Avoid echo -n in unit-tests


(sjg)
diff -r1.2 -r1.3 src/usr.bin/make/unit-tests/varmisc.exp
diff -r1.3 -r1.4 src/usr.bin/make/unit-tests/varmisc.mk

cvs diff -r1.2 -r1.3 src/usr.bin/make/unit-tests/varmisc.exp (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/varmisc.exp 2015/10/11 04:51:24 1.2
+++ src/usr.bin/make/unit-tests/varmisc.exp 2015/10/11 06:32:15 1.3
@@ -1,14 +1,18 @@ @@ -1,14 +1,18 @@
1 1
2:D expanded when var set 2:D expanded when var set
3true,TRUE 3true
 4TRUE
4:U expanded when var undef 5:U expanded when var undef
5true,TRUE 6true
 7TRUE
6:D skipped if var undef 8:D skipped if var undef
7 9
8:U skipped when var set 10:U skipped when var set
9is set 11is set
10:? only lhs when value true 12:? only lhs when value true
11true,TRUE 13true
 14TRUE
12:? only rhs when value false 15:? only rhs when value false
13false,FALSE 16false
 17FALSE
14exit status 0 18exit status 0

cvs diff -r1.3 -r1.4 src/usr.bin/make/unit-tests/varmisc.mk (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/varmisc.mk 2015/10/11 04:51:24 1.3
+++ src/usr.bin/make/unit-tests/varmisc.mk 2015/10/11 06:32:15 1.4
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1# $Id: varmisc.mk,v 1.3 2015/10/11 04:51:24 sjg Exp $ 1# $Id: varmisc.mk,v 1.4 2015/10/11 06:32:15 sjg Exp $
2# 2#
3# Miscellaneous variable tests. 3# Miscellaneous variable tests.
4 4
5all: unmatched_var_paren D_true U_true D_false U_false Q_lhs Q_rhs 5all: unmatched_var_paren D_true U_true D_false U_false Q_lhs Q_rhs
6 6
7unmatched_var_paren: 7unmatched_var_paren:
8 @echo ${foo::=foo-text} 8 @echo ${foo::=foo-text}
9 9
10True = ${echo -n true,>&2:L:sh}TRUE 10True = ${echo true >&2:L:sh}TRUE
11False= ${echo -n false,>&2:L:sh}FALSE 11False= ${echo false >&2:L:sh}FALSE
12 12
13VSET= is set 13VSET= is set
14.undef UNDEF 14.undef UNDEF
15 15
16U_false: 16U_false:
17 @echo :U skipped when var set 17 @echo :U skipped when var set
18 @echo ${VSET:U${False}} 18 @echo ${VSET:U${False}}
19 19
20D_false: 20D_false:
21 @echo :D skipped if var undef 21 @echo :D skipped if var undef
22 @echo ${UNDEF:D${False}} 22 @echo ${UNDEF:D${False}}
23 23
24U_true: 24U_true: