From ac54e1e4d25b80dcf389000e56c573844d98e335 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 1 Sep 2011 12:14:11 +0200 Subject: [PATCH] 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. --- tests/misc/printf | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.3