Module Name: src
Committed By: jmmv
Date: Sat Jul 10 15:57:37 UTC 2010
Modified Files:
src/tests/util/sh: t_varquote.sh
Log Message:
Add xfail test case for PR bin/43597 that I just submitted.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/util/sh/t_varquote.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/util/sh/t_varquote.sh
diff -u src/tests/util/sh/t_varquote.sh:1.2 src/tests/util/sh/t_varquote.sh:1.3
--- src/tests/util/sh/t_varquote.sh:1.2 Wed Apr 30 13:11:00 2008
+++ src/tests/util/sh/t_varquote.sh Sat Jul 10 15:57:37 2010
@@ -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
}