summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-13 02:09:22 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-13 02:09:22 +0100
commitaa42d13e320250d3573c6be975876a612c00e91f (patch)
tree822cacf0626690e608e15df32659c65caac29b36 /testsuite
parent31e2e7b86388e4ece09f37866bd1411f357cafbd (diff)
downloadbusybox-w32-aa42d13e320250d3573c6be975876a612c00e91f.tar.gz
busybox-w32-aa42d13e320250d3573c6be975876a612c00e91f.tar.bz2
busybox-w32-aa42d13e320250d3573c6be975876a612c00e91f.zip
sort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sort.tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index 5ed29fb12..72df80b1f 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -27,6 +27,8 @@ egg 1 2 papyrus
27999 3 0 algebra 27999 3 0 algebra
28" 28"
29 29
30# testing "description" "command(s)" "result" "infile" "stdin"
31
30# Sorting with keys 32# Sorting with keys
31 33
32testing "sort one key" "sort -k4,4 input" \ 34testing "sort one key" "sort -k4,4 input" \
@@ -115,4 +117,15 @@ one\0two\0three\0\
115testing "sort key doesn't strip leading blanks, disables fallback global sort" \ 117testing "sort key doesn't strip leading blanks, disables fallback global sort" \
116"sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n" 118"sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n"
117 119
120testing "sort file in place" \
121"strace -oZZZ sort -o input input && cat input" "\
122111
123222
124" "\
125222
126111
127" ""
128
129# testing "description" "command(s)" "result" "infile" "stdin"
130
118exit $FAILCOUNT 131exit $FAILCOUNT