aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-01-04 23:53:21 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2022-01-04 23:53:21 +0100
commitcc7d2e21780c28608b00a4faf0fed297527bcbf4 (patch)
treee3fbe3c8461299d14687e490d1b70ea1b80879fd /testsuite
parentdfd8aafcf59c88662516a534a4334b3f08f58c88 (diff)
downloadbusybox-w32-cc7d2e21780c28608b00a4faf0fed297527bcbf4.tar.gz
busybox-w32-cc7d2e21780c28608b00a4faf0fed297527bcbf4.tar.bz2
busybox-w32-cc7d2e21780c28608b00a4faf0fed297527bcbf4.zip
sort: fix -s -r interaction: 'stable' order is not affected by -r
function old new delta compare_keys 818 820 +2 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 c51a8e475..5375f93de 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -175,6 +175,19 @@ testing "sort file in place" \
175111 175111
176" "" 176" ""
177 177
178testing "sort -sr (stable and reverse) does NOT reverse 'stable' ordering" \
179"sort -k2 -r -s input" "\
180b 2
181d 2
182a 1
183c 1
184" "\
185a 1
186b 2
187c 1
188d 2
189" ""
190
178# testing "description" "command(s)" "result" "infile" "stdin" 191# testing "description" "command(s)" "result" "infile" "stdin"
179 192
180exit $FAILCOUNT 193exit $FAILCOUNT