aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-16 05:25:43 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-16 05:25:43 +0000
commitc55dc215e1e5b45975d96f8f4ae25d8320fa1380 (patch)
treede00e748021d3078ea21bb90017ded81129cb4bd /testsuite/sed
parent06cbc471880cb5ea8f3293eaaa0f0a4b0b49580f (diff)
downloadbusybox-w32-c55dc215e1e5b45975d96f8f4ae25d8320fa1380.tar.gz
busybox-w32-c55dc215e1e5b45975d96f8f4ae25d8320fa1380.tar.bz2
busybox-w32-c55dc215e1e5b45975d96f8f4ae25d8320fa1380.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. git-svn-id: svn://busybox.net/trunk/busybox@7535 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite/sed')
-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