From af5f2d741b8e50e629b3e025631c09e9b6ccf49e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 1 Sep 2011 14:45:51 +0200 Subject: 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. --- tests/misc/printf-surprise | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/misc/printf-surprise') 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 ;; -- cgit v1.2.3-70-g09d2