summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-05-10 16:20:38 +0200
committerJim Meyering <meyering@redhat.com>2012-05-10 17:09:42 +0200
commit3a696dee7232dedbb8c7031d2547af20bb29645f (patch)
tree4302a831101e062343005e1e1c0bf960988a184b /tests
parente12107148944a6c03f5767a76b6acf5714bae7df (diff)
downloadcoreutils-3a696dee7232dedbb8c7031d2547af20bb29645f.tar.xz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am2
-rwxr-xr-xtests/misc/tty-eof2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ca190517b..a4370a6d1 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -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 \
diff --git a/tests/misc/tty-eof b/tests/misc/tty-eof
index 9e866139c..e9eed2eac 100755
--- a/tests/misc/tty-eof
+++ b/tests/misc/tty-eof
@@ -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"),