From: Jim Meyering Date: Thu, 1 Sep 2011 10:14:11 +0000 (+0200) Subject: tests: misc/printf: accommodate alternate behavior X-Git-Tag: v8.13~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac54e1e4d25b80dcf389000e56c573844d98e335;p=thirdparty%2Fcoreutils.git tests: misc/printf: accommodate alternate behavior * tests/misc/printf: Avoid false positive failure on MacOS X 10.5 due to a slightly differing diagnostic. Reported by Bruno Haible. --- diff --git a/tests/misc/printf b/tests/misc/printf index 752da6e023..b9092e17f1 100755 --- a/tests/misc/printf +++ b/tests/misc/printf @@ -110,6 +110,11 @@ cat < exp 0 EOF +# POSIX says strtoimax *may* set errno to EINVAL in the latter +# two cases. So far, that happens at least on MacOS X 10.5. +# Map that output to the more common expected output. +sed 's/: Invalid.*/: expected a numeric value/' err > k && mv k err + cat < exp_err printf: warning: ": character(s) following character constant have been ignored printf: ": expected a numeric value