diff options
author | Bartosz Golaszewski <bartekgola@gmail.com> | 2014-01-19 09:10:14 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-19 09:10:14 +0100 |
commit | 5c13ab41bb9472b792797a339f93a3a3ca62fd7a (patch) | |
tree | 864ee45c1fec26cd160dce0bbbb95e1a95f6e27f /testsuite | |
parent | 1a4d9f652169afa08680d3ff2c2cf9efa2a76a1b (diff) | |
download | busybox-w32-5c13ab41bb9472b792797a339f93a3a3ca62fd7a.tar.gz busybox-w32-5c13ab41bb9472b792797a339f93a3a3ca62fd7a.tar.bz2 busybox-w32-5c13ab41bb9472b792797a339f93a3a3ca62fd7a.zip |
sort: check global flags on fallback sort
Sort now performs global reverse on fallback sort if -r is set. Before
only key local flags were checked.
function old new delta
compare_keys 712 738 +26
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sort.tests | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests index 91b282ea0..68fa3e405 100755 --- a/testsuite/sort.tests +++ b/testsuite/sort.tests | |||
@@ -47,8 +47,6 @@ egg 1 2 papyrus | |||
47 | 999 3 0 algebra | 47 | 999 3 0 algebra |
48 | " "$data" "" | 48 | " "$data" "" |
49 | 49 | ||
50 | test x"$SKIP_KNOWN_BUGS" = x"" && { | ||
51 | # Busybox is definitely doing these wrong. FIXME | ||
52 | testing "sort key range with numeric option and global reverse" \ | 50 | testing "sort key range with numeric option and global reverse" \ |
53 | "sort -k2,3n -r input" \ | 51 | "sort -k2,3n -r input" \ |
54 | "egg 1 2 papyrus | 52 | "egg 1 2 papyrus |
@@ -65,7 +63,6 @@ testing "sort key range with multiple options" "sort -k2,3rn input" \ | |||
65 | 42 1 3 woot | 63 | 42 1 3 woot |
66 | egg 1 2 papyrus | 64 | egg 1 2 papyrus |
67 | " "$data" "" | 65 | " "$data" "" |
68 | } | ||
69 | 66 | ||
70 | testing "sort key range with two -k options" "sort -k 2,2n -k 1,1r input" "\ | 67 | testing "sort key range with two -k options" "sort -k 2,2n -k 1,1r input" "\ |
71 | d 2 | 68 | d 2 |