diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-16 05:25:43 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-16 05:25:43 +0000 |
commit | 2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1 (patch) | |
tree | de00e748021d3078ea21bb90017ded81129cb4bd /testsuite | |
parent | 204ff1cea49c958846cd49175fa9318b81b5756f (diff) | |
download | busybox-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-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 | ||