diff options
author | Glenn L McGrath | 2003-09-16 05:25:43 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-09-16 05:25:43 +0000 |
commit | 2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1 (patch) | |
tree | de00e748021d3078ea21bb90017ded81129cb4bd /testsuite/sed | |
parent | 204ff1cea49c958846cd49175fa9318b81b5756f (diff) | |
download | busybox-2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1.zip busybox-2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1.tar.gz |
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/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 380b793..e7f72f4 100644 --- a/testsuite/sed/sed-append-next-line +++ b/testsuite/sed/sed-append-next-line @@ -1,4 +1,6 @@ -busybox sed -n 'N;p'>output <<EOF +# XFAIL +# This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined +busybox sed 'N;p'>output <<EOF a b c @@ -6,4 +8,7 @@ EOF cmp -s output - <<EOF a b +a +b +c EOF diff --git a/testsuite/sed/sed-append-next-line-gnu b/testsuite/sed/sed-append-next-line-gnu new file mode 100644 index 0000000..d7aba8c --- /dev/null +++ b/testsuite/sed/sed-append-next-line-gnu @@ -0,0 +1,14 @@ +# FEATURE: CONFIG_FEATURE_SED_GNU_COMPATABILITY +busybox sed 'N;p'>output <<EOF +a +b +c +EOF +cmp -s output - <<EOF +a +b +a +b +c + +EOF |