summaryrefslogtreecommitdiff
path: root/tests/write-error-msg
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2017-06-29 18:06:11 -0700
committerJim Meyering <meyering@fb.com>2017-07-01 09:30:51 -0700
commit9fbc2fb1823c71a9d3370e0b04886c5994000fa8 (patch)
tree4c7866f579ce32503a97fee1a45f498d21d31416 /tests/write-error-msg
parentbdce7a23e55e82efa429e001dd6f2979d7f5d351 (diff)
downloadgrep-9fbc2fb1823c71a9d3370e0b04886c5994000fa8.tar.gz
tests: avoid false failures when run in qemu user mode
* tests/filename-lineno.pl: Derive the program name that grep will use in diagnostics, based on a suggestion from Assaf Gordon. * tests/in-eq-out-infloop: Similar: accept an arbitrary "command_name: " prefix on checked diagnostics, rather than requiring "grep: ". * tests/reversed-range-endpoints: Likewise. * tests/write-error-msg: Likewise. Reported by Bruno Haible in http://bugs.gnu.org/27532
Diffstat (limited to 'tests/write-error-msg')
-rwxr-xr-xtests/write-error-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/write-error-msg b/tests/write-error-msg
index f2ab6da6..e79c45be 100755
--- a/tests/write-error-msg
+++ b/tests/write-error-msg
@@ -40,7 +40,7 @@ returns_ 2 grep -v '^$' <in >/dev/full 2>err2 \
# ensure each error message file contains a 'write error' with additional text
for f in err1 err2 ;
do
- grep -Eiq '^grep: write error: [a-z]+' $f \
+ grep -Eiq '^[^:]*: write error: [a-z]+' $f \
|| {
warn_ "incorrect/missing error message in file $f"
compare /dev/null $f # print the content in the logs