mirror of
https://https.git.savannah.gnu.org/git/grep.git
synced 2026-01-26 15:39:06 +00:00
In a parallel test run, it is not unusual to exceed a timeout of 1-3 seconds. Increase several from 3 or fewer to 10 seconds. * tests/skip-device: Increase timeout from 2 to 10 seconds. * tests/grep-dev-null-out: Likewise, but s/1/10/. * tests/pcre-invalid-utf8-input: Likewise, but s/3/10/. * tests/dfa-match: Likewise. * tests/pcre-invalid-utf8-infloop: Likewise. * tests/pcre-infloop: Likewise. * tests/max-count-overread: Likewise. * tests/invalid-multibyte-infloop: Likewise. Prompted by http://bugs.gnu.org/24159.
17 lines
416 B
Bash
Executable File
17 lines
416 B
Bash
Executable File
#!/bin/sh
|
|
# grep must ignore --devices=ACTION (-D) when reading stdin
|
|
# For grep-2.11, this test would fail.
|
|
|
|
. "${srcdir=.}/init.sh"; path_prepend_ ../src
|
|
|
|
# Test both with no file argument, and with "-".
|
|
echo foo | grep -D skip foo - || fail=1
|
|
echo foo | grep --devices=skip foo || fail=1
|
|
|
|
require_timeout_
|
|
mkfifo myfifo || framework_failure_
|
|
timeout 10 grep -D skip foo myfifo
|
|
test $? -eq 1 || fail=1
|
|
|
|
Exit $fail
|