]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
test: check for Fedora 20 sort key bug
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Sep 2014 18:55:20 +0000 (11:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Sep 2014 18:55:57 +0000 (11:55 -0700)
Problem reported by Göran Uddeborg in: http://bugs.gnu.org/18540
* tests/misc/sort.pl: New test 23.

tests/misc/sort.pl

index db732094964b849b120fd091cf09ed3c52ccd938..3961f4f2754673ac3b34819d4284bb07c9884996 100755 (executable)
@@ -317,6 +317,10 @@ my @Tests =
 ["22a", '-k 2,2fd -k 1,1r', {IN=>"3 b\n4 B\n"}, {OUT=>"4 B\n3 b\n"}],
 ["22b", '-k 2,2d  -k 1,1r', {IN=>"3 b\n4 b\n"}, {OUT=>"4 b\n3 b\n"}],
 
+# This fails in Fedora 20, per Göran Uddeborg in: http://bugs.gnu.org/18540
+["23", '-s -k1,1 -t/', {IN=>"a b/x\na-b-c/x\n"}, {OUT=>"a b/x\na-b-c/x\n"},
+ {ENV => "LC_ALL=$mb_locale"}],
+
 ["no-file1", 'no-file', {EXIT=>2}, {ERR=>$no_file}],
 # This test failed until 1.22f.  Sort didn't give an error.
 # From Will Edgington.