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/8358970d7b20
branches: trunk
changeset: 340931:8358970d7b20
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 24b629db89bd -r 8358970d7b20 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 24b629db89bd -r 8358970d7b20 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