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 Avoid echo -n in unit-tests



details:   https://anonhg.NetBSD.org/src/rev/e019c2963309
branches:  trunk
changeset: 811073:e019c2963309
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sun Oct 11 06:32:15 2015 +0000

description:
Avoid echo -n in unit-tests

diffstat:

 usr.bin/make/unit-tests/varmisc.exp |  12 ++++++++----
 usr.bin/make/unit-tests/varmisc.mk  |   6 +++---
 2 files changed, 11 insertions(+), 7 deletions(-)

diffs (46 lines):

diff -r 1016a68f1d52 -r e019c2963309 usr.bin/make/unit-tests/varmisc.exp
--- a/usr.bin/make/unit-tests/varmisc.exp       Sun Oct 11 04:51:24 2015 +0000
+++ b/usr.bin/make/unit-tests/varmisc.exp       Sun Oct 11 06:32:15 2015 +0000
@@ -1,14 +1,18 @@
 
 :D expanded when var set
-true,TRUE
+true
+TRUE
 :U expanded when var undef
-true,TRUE
+true
+TRUE
 :D skipped if var undef
 
 :U skipped when var set
 is set
 :? only lhs when value true
-true,TRUE
+true
+TRUE
 :? only rhs when value false
-false,FALSE
+false
+FALSE
 exit status 0
diff -r 1016a68f1d52 -r e019c2963309 usr.bin/make/unit-tests/varmisc.mk
--- a/usr.bin/make/unit-tests/varmisc.mk        Sun Oct 11 04:51:24 2015 +0000
+++ b/usr.bin/make/unit-tests/varmisc.mk        Sun Oct 11 06:32:15 2015 +0000
@@ -1,4 +1,4 @@
-# $Id: varmisc.mk,v 1.3 2015/10/11 04:51:24 sjg Exp $
+# $Id: varmisc.mk,v 1.4 2015/10/11 06:32:15 sjg Exp $
 #
 # Miscellaneous variable tests.
 
@@ -7,8 +7,8 @@
 unmatched_var_paren:
        @echo ${foo::=foo-text}
 
-True = ${echo -n true,>&2:L:sh}TRUE
-False= ${echo -n false,>&2:L:sh}FALSE
+True = ${echo true >&2:L:sh}TRUE
+False= ${echo false >&2:L:sh}FALSE
 
 VSET= is set
 .undef UNDEF



Home | Main Index | Thread Index | Old Index