summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-09-16 05:25:43 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-09-16 05:25:43 +0000
commit2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1 (patch)
treede00e748021d3078ea21bb90017ded81129cb4bd /testsuite
parent204ff1cea49c958846cd49175fa9318b81b5756f (diff)
downloadbusybox-w32-2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1.tar.gz
busybox-w32-2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1.tar.bz2
busybox-w32-2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1.zip
Configuration option to define wether to follows GNU sed's behaviour
or the posix standard. Put the cleanup code back the way it was.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/sed/sed-append-next-line7
-rw-r--r--testsuite/sed/sed-append-next-line-gnu14
2 files changed, 20 insertions, 1 deletions
diff --git a/testsuite/sed/sed-append-next-line b/testsuite/sed/sed-append-next-line
index 380b7935d..e7f72f476 100644
--- a/testsuite/sed/sed-append-next-line
+++ b/testsuite/sed/sed-append-next-line
@@ -1,4 +1,6 @@
1busybox sed -n 'N;p'>output <<EOF 1# XFAIL
2# This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined
3busybox sed 'N;p'>output <<EOF
2a 4a
3b 5b
4c 6c
@@ -6,4 +8,7 @@ EOF
6cmp -s output - <<EOF 8cmp -s output - <<EOF
7a 9a
8b 10b
11a
12b
13c
9EOF 14EOF
diff --git a/testsuite/sed/sed-append-next-line-gnu b/testsuite/sed/sed-append-next-line-gnu
new file mode 100644
index 000000000..d7aba8c2c
--- /dev/null
+++ b/testsuite/sed/sed-append-next-line-gnu
@@ -0,0 +1,14 @@
1# FEATURE: CONFIG_FEATURE_SED_GNU_COMPATABILITY
2busybox sed 'N;p'>output <<EOF
3a
4b
5c
6EOF
7cmp -s output - <<EOF
8a
9b
10a
11b
12c
13
14EOF