diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-09-16 05:25:43 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-09-16 05:25:43 +0000 |
commit | c55dc215e1e5b45975d96f8f4ae25d8320fa1380 (patch) | |
tree | de00e748021d3078ea21bb90017ded81129cb4bd /testsuite/sed | |
parent | 06cbc471880cb5ea8f3293eaaa0f0a4b0b49580f (diff) | |
download | busybox-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-line | 7 | ||||
-rw-r--r-- | testsuite/sed/sed-append-next-line-gnu | 14 |
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 @@ | |||
1 | busybox sed -n 'N;p'>output <<EOF | 1 | # XFAIL |
2 | # This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined | ||
3 | busybox sed 'N;p'>output <<EOF | ||
2 | a | 4 | a |
3 | b | 5 | b |
4 | c | 6 | c |
@@ -6,4 +8,7 @@ EOF | |||
6 | cmp -s output - <<EOF | 8 | cmp -s output - <<EOF |
7 | a | 9 | a |
8 | b | 10 | b |
11 | a | ||
12 | b | ||
13 | c | ||
9 | EOF | 14 | EOF |
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 | ||
2 | busybox sed 'N;p'>output <<EOF | ||
3 | a | ||
4 | b | ||
5 | c | ||
6 | EOF | ||
7 | cmp -s output - <<EOF | ||
8 | a | ||
9 | b | ||
10 | a | ||
11 | b | ||
12 | c | ||
13 | |||
14 | EOF | ||