Add two new tests, sed-recurses-properly should always work
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 14 Sep 2003 09:38:24 +0000 (09:38 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 14 Sep 2003 09:38:24 +0000 (09:38 -0000)
testsuite/sed/sed-branch [new file with mode: 0644]
testsuite/sed/sed-chains-substs2 [new file with mode: 0644]
testsuite/sed/sed-recurses-properly

diff --git a/testsuite/sed/sed-branch b/testsuite/sed/sed-branch
new file mode 100644 (file)
index 0000000..47d0a5f
--- /dev/null
@@ -0,0 +1,15 @@
+busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+1
+1
+b
+b
+b
+c
+c
+c
+EOF
diff --git a/testsuite/sed/sed-chains-substs2 b/testsuite/sed/sed-chains-substs2
new file mode 100644 (file)
index 0000000..90568f6
--- /dev/null
@@ -0,0 +1 @@
+test x"$(echo foo | busybox -n sed -e s/foo/bar/ -e s/foo/baz/)" = x
index bb70f4f9cd619f70fd9d863f01ef02f044844a7d..a02667b41c1e3a4fd7806ddf2bbded38f1e1345f 100644 (file)
@@ -1,2 +1 @@
-# XFAIL
 test "`echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')` = ',1,2,3,4,5,'"