From 3759f24379c98b984a56b52c7d23a2dfbf36efcf Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 27 Jun 2013 14:43:12 +0200 Subject: tests: avoid a spurious failure on MacOS X 10.6.8 Fixes automake bug#14706. * t/depcomp2.sh: Strip, from the redirected ./configure stderr, the possible error message "rm: conftest.dSYM: is a directory", generated by cleanup code that doesn't cater to the existence of *.dSYM directories sometimes created by the compiler on MacOS X. This "massaging" of ./configure stderr is legitimate, since the spurious error message is due not to automake-related code, but to a know buglet/limitation of either Autoconf or Mac OS X bundles gcc: Actually, from that link it appears that the original Autoconf issue had been fixed, but it must have been re-introduced in the meantime :-( Signed-off-by: Stefano Lattarini --- t/depcomp2.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/depcomp2.sh b/t/depcomp2.sh index 218216477..3eba12d6c 100644 --- a/t/depcomp2.sh +++ b/t/depcomp2.sh @@ -45,6 +45,9 @@ $AUTOMAKE --add-missing $AUTOCONF ./configure 2>stderr || { cat stderr >&2; exit 1; } cat stderr >&2 -test ! -s stderr +# Ignore warning messages sometimes seen on Mac OS X; they are +# not automake's fault anyway, but either autoconf's or Mac's. +sed '/rm:.* conftest\.dSYM/d' stderr >stderr2 +test -s stderr2 && { cat stderr2; exit 1; } : -- cgit v1.2.1