1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-11 14:44:18 +02:00

tests: misc/tty-eof: increase timeout to avoid unwarranted failure

* tests/misc/tty-eof: Increase timeout from 1s to 10s, to avoid
unwarranted failure under heavy load.
* tests/Makefile.am (TESTS): Move misc/tty-eof "up" to nearer the
beginning of the list (from near the middle) so that it is started
earlier in parallel test runs.  Otherwise, it would frequently be
among the last two tests to complete.
This commit is contained in:
Jim Meyering
2012-05-10 16:20:38 +02:00
parent e121071489
commit 3a696dee72
2 changed files with 2 additions and 2 deletions

View File

@@ -87,6 +87,7 @@ TESTS = \
rm/ext3-perf \
rm/cycle \
cp/link-heap \
misc/tty-eof \
tail-2/inotify-hash-abuse \
tail-2/inotify-hash-abuse2 \
tail-2/F-vs-missing \
@@ -303,7 +304,6 @@ TESTS = \
misc/truncate-parameters \
misc/truncate-relative \
misc/tsort \
misc/tty-eof \
misc/unexpand \
misc/uniq \
misc/uniq-perf \

View File

@@ -75,7 +75,7 @@ $@
$exp->expect (0, '-re', "^a b\\r?\$");
my $found = $exp->expect (1, '-re', "^.+\$");
$found and warn "F: $found: " . $exp->exp_match () . "\n";
$exp->expect(1, 'eof');
$exp->expect(10, 'eof');
# Expect no output from cut, since we gave it no input.
defined $found || $cmd =~ /^cut/
or (warn "$ME: $cmd didn't produce expected output\n"),