]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid unusual (~1-in-20) failure of a new test
authorJim Meyering <meyering@redhat.com>
Fri, 24 Apr 2009 19:34:59 +0000 (21:34 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 24 Apr 2009 19:34:59 +0000 (21:34 +0200)
* tests/misc/sort: Remove one of the generated tests.
363 remain in this file alone.

tests/misc/sort

index a27f47ad56ec4e278b99ee8e720dd90870c1fa56..c5a2d7492011c9f800e2f91c0de922b04604affd 100755 (executable)
@@ -369,6 +369,14 @@ foreach my $t (@Tests)
 
 @Tests = triple_test \@Tests;
 
+# Remember that triple_test creates from each test with exactly one "IN"
+# file two more tests (.p and .r suffix on name) corresponding to reading
+# input from a file and from a pipe.  The pipe-reading test would fail
+# due to a race condition about 1 in 20 times.
+# Remove the IN_PIPE version of the "output-is-input" test above.
+# The others aren't susceptible because they have three inputs each.
+@Tests = grep {$_->[0] ne 'output-is-input.p'} @Tests;
+
 my $save_temps = $ENV{DEBUG};
 my $verbose = $ENV{VERBOSE};