diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-15 20:50:38 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-15 20:50:38 +0000 |
commit | 0cc78cf484e3d25ea1d98cda9160442af1a1a32d (patch) | |
tree | a2228860af517eefd8787a739e01d00b4062e587 /testsuite | |
parent | 10572ca84b54e6903f898841b63149012b7d175f (diff) | |
download | busybox-w32-0cc78cf484e3d25ea1d98cda9160442af1a1a32d.tar.gz busybox-w32-0cc78cf484e3d25ea1d98cda9160442af1a1a32d.tar.bz2 busybox-w32-0cc78cf484e3d25ea1d98cda9160442af1a1a32d.zip |
Fix bug found by Joey Hess and forwarded by Bastian Bunk. Add Joey Hess's
test case to the testsuite, plus another one that would have been broken by
the first attempt at a fix.
git-svn-id: svn://busybox.net/trunk/busybox@15397 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sort.tests | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests index d1b42532d..cd2e291b2 100755 --- a/testsuite/sort.tests +++ b/testsuite/sort.tests | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash |
2 | 2 | ||
3 | # SUSv3 compliant sort tests. | 3 | # SUSv3 compliant sort tests. |
4 | # Copyright 2005 by Rob Landley <rob@landley.net> | 4 | # Copyright 2005 by Rob Landley <rob@landley.net> |
@@ -66,4 +66,18 @@ testing "sort key range with multiple options" "sort -k2,3rn input" \ | |||
66 | egg 1 2 papyrus | 66 | egg 1 2 papyrus |
67 | " "$data" "" | 67 | " "$data" "" |
68 | 68 | ||
69 | testing "sort key doesn't strip leading blanks, disables fallback global sort" \ | ||
70 | "sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n" | ||
71 | |||
72 | testing "sort key edge case with -t" "sort -n -k4 -t/" \ | ||
73 | "/usr/lib/finish-install.d/1 | ||
74 | /usr/lib/finish-install.d/4 | ||
75 | /usr/lib/prebaseconfig.d/2 | ||
76 | /usr/lib/prebaseconfig.d/6 | ||
77 | " "" "/usr/lib/finish-install.d/1 | ||
78 | /usr/lib/prebaseconfig.d/2 | ||
79 | /usr/lib/finish-install.d/4 | ||
80 | /usr/lib/prebaseconfig.d/6 | ||
81 | " | ||
82 | |||
69 | exit $FAILCOUNT | 83 | exit $FAILCOUNT |