aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests14
-rw-r--r--[-rwxr-xr-x]testsuite/testing.sh2
2 files changed, 15 insertions, 1 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index b0de9657c..5b0750cac 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -258,4 +258,18 @@ testing "sed nested {}s" \
"qwe\nasd\nacd\nacd\n" "" \
"qwe\nasd\nzxc\n"
+testing "sed a cmd ended by double backslash" \
+ "sed -e '/| one /a \\
+ | three \\\\' -e '/| one-/a \\
+ | three-* \\\\'" \
+' | one \\
+ | three \\
+ | two \\
+' '' \
+' | one \\
+ | two \\
+'
+
+# testing "description" "arguments" "result" "infile" "stdin"
+
exit $FAILCOUNT
diff --git a/testsuite/testing.sh b/testsuite/testing.sh
index 65a0f6529..913d7f8ef 100755..100644
--- a/testsuite/testing.sh
+++ b/testsuite/testing.sh
@@ -73,7 +73,7 @@ testing()
if [ $# -ne 5 ]
then
- echo "Test $NAME has wrong number of arguments (must be 5) ($# $*)" >&2
+ echo "Test $NAME has wrong number of arguments: $# (must be 5)" >&2
exit 1
fi