diff options
-rw-r--r-- | testsuite/sed/sed-branch | 15 | ||||
-rw-r--r-- | testsuite/sed/sed-chains-substs2 | 1 | ||||
-rw-r--r-- | testsuite/sed/sed-recurses-properly | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/testsuite/sed/sed-branch b/testsuite/sed/sed-branch new file mode 100644 index 000000000..47d0a5ff2 --- /dev/null +++ b/testsuite/sed/sed-branch | |||
@@ -0,0 +1,15 @@ | |||
1 | busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF | ||
2 | a | ||
3 | b | ||
4 | c | ||
5 | EOF | ||
6 | cmp -s output - <<EOF | ||
7 | 1 | ||
8 | 1 | ||
9 | b | ||
10 | b | ||
11 | b | ||
12 | c | ||
13 | c | ||
14 | c | ||
15 | EOF | ||
diff --git a/testsuite/sed/sed-chains-substs2 b/testsuite/sed/sed-chains-substs2 new file mode 100644 index 000000000..90568f6e6 --- /dev/null +++ b/testsuite/sed/sed-chains-substs2 | |||
@@ -0,0 +1 @@ | |||
test x"$(echo foo | busybox -n sed -e s/foo/bar/ -e s/foo/baz/)" = x | |||
diff --git a/testsuite/sed/sed-recurses-properly b/testsuite/sed/sed-recurses-properly index bb70f4f9c..a02667b41 100644 --- a/testsuite/sed/sed-recurses-properly +++ b/testsuite/sed/sed-recurses-properly | |||
@@ -1,2 +1 @@ | |||
1 | # XFAIL | ||
2 | test "`echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')` = ',1,2,3,4,5,'" | test "`echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')` = ',1,2,3,4,5,'" | |