summaryrefslogtreecommitdiff
path: root/tests/misc/printf-surprise
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-09-01 14:45:51 +0200
committerJim Meyering <meyering@redhat.com>2011-09-01 16:36:23 +0200
commitaf5f2d741b8e50e629b3e025631c09e9b6ccf49e (patch)
treeb189cec4769efda174b220664d60cff130141b12 /tests/misc/printf-surprise
parent44f7444987ad043d69b031ac8a1f69a919c4643a (diff)
downloadcoreutils-af5f2d741b8e50e629b3e025631c09e9b6ccf49e.tar.xz
tests: printf-surprise: avoid false-positive failure
* tests/misc/printf-surprise: Also accept a strerror-style string after the usual 'printf: write error:' diagnostic prefix. Otherwise, this test would fail on HP-UX 11. Reported by Bruno Haible.
Diffstat (limited to 'tests/misc/printf-surprise')
-rwxr-xr-xtests/misc/printf-surprise2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/printf-surprise b/tests/misc/printf-surprise
index ca0f8e4b8..8c993fdb1 100755
--- a/tests/misc/printf-surprise
+++ b/tests/misc/printf-surprise
@@ -67,7 +67,7 @@ err_msg=$(cat err-msg|tr '\n' :)
# containing '1> fifo:printf: write error:'. Recognize that, too.
case $err_msg in
- "$prog: write error:") diagnostic=y ;;
+ "$prog: write error:"*) diagnostic=y ;;
"1> fifo:$prog: write error:") diagnostic=y ;;
'') diagnostic=n ;;
*) diagnostic=unexpected ;;