Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/util/sh Add xfail test case for PR bin/43597 that I ju...
details: https://anonhg.NetBSD.org/src/rev/c7ff11351f89
branches: trunk
changeset: 756279:c7ff11351f89
user: jmmv <jmmv%NetBSD.org@localhost>
date: Sat Jul 10 15:57:37 2010 +0000
description:
Add xfail test case for PR bin/43597 that I just submitted.
diffstat:
tests/util/sh/t_varquote.sh | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 6ec49aa5bed8 -r c7ff11351f89 tests/util/sh/t_varquote.sh
--- a/tests/util/sh/t_varquote.sh Sat Jul 10 13:08:09 2010 +0000
+++ b/tests/util/sh/t_varquote.sh Sat Jul 10 15:57:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_varquote.sh,v 1.2 2008/04/30 13:11:00 martin Exp $
+# $NetBSD: t_varquote.sh,v 1.3 2010/07/10 15:57:37 jmmv Exp $
#
# Copyright (c) 2007 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -65,6 +65,18 @@
check "$foo" "x}y}z}"
}
+atf_test_case nested_quotes_multiword
+nested_quotes_multiword_head() {
+ atf_set "descr" "Tests that having nested quoting in a multi-word" \
+ "string works"
+}
+nested_quotes_multiword_body() {
+ atf_expect_fail "PR bin/43597"
+ atf_check -s eq:0 -o match:"first-word second-word" -e empty \
+ /bin/sh -c 'echo "${foo:="first-word"} second-word"'
+}
+
atf_init_test_cases() {
atf_add_test_case all
+ atf_add_test_case nested_quotes_multiword
}
Home |
Main Index |
Thread Index |
Old Index