aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-19 19:27:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-19 19:27:26 +0200
commit0506e292b518a04846ae1f611ecc0633969a2801 (patch)
tree14dfac41239a1a67fdd4d895b0b27d1ba77fd383 /testsuite
parentd1ed3e68b8080161642cc106099c0a17ac7892e6 (diff)
downloadbusybox-w32-0506e292b518a04846ae1f611ecc0633969a2801.tar.gz
busybox-w32-0506e292b518a04846ae1f611ecc0633969a2801.tar.bz2
busybox-w32-0506e292b518a04846ae1f611ecc0633969a2801.zip
sort: fix ENDCHAR handling in "-kSTART,N.ENDCHAR"
function old new delta get_key 505 503 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sort.tests8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index 39c7af738..c51a8e475 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -106,6 +106,14 @@ a/a:a
106a:b 106a:b
107" "" 107" ""
108 108
109testing "sort with ENDCHAR" "sort -t. -k1,1.1 -k2 input" "\
110ab.1
111aa.2
112" "\
113aa.2
114ab.1
115" ""
116
109testing "glibc build sort" "sort -t. -k 1,1 -k 2n,2n -k 3 input" "\ 117testing "glibc build sort" "sort -t. -k 1,1 -k 2n,2n -k 3 input" "\
110GLIBC_2.1 118GLIBC_2.1
111GLIBC_2.1.1 119GLIBC_2.1.1