From be6f90aa33bfaa28dcaba8cc269ef504a51f6f9a Mon Sep 17 00:00:00 2001 From: Peter O'Gorman Date: Sat, 31 May 2008 12:12:31 -0500 Subject: [PATCH] Skip darwin test if fat link fails. * tests/darwin.at: Skip if we can not link a fat program. Reported by Daniel Macks --- ChangeLog | 6 ++++++ tests/darwin.at | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 178d50544..90c8ebda6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-31 Peter O'Gorman + + Skip darwin test if fat link fails. + * tests/darwin.at: Skip if we can not link a fat program. + Reported by Daniel Macks + 2008-05-26 Ralf Wildenhues libtoolize should not remove config.guess, config.sub. diff --git a/tests/darwin.at b/tests/darwin.at index 7e6d07eec..2ca564942 100644 --- a/tests/darwin.at +++ b/tests/darwin.at @@ -30,17 +30,21 @@ darwin*) ;; *) noskip=false ;; esac -AT_DATA([foo.c],[[ -int x=0; +AT_DATA([simple.c] ,[[ +int main() { return 0;} ]]) $noskip && { -$CC $CPPFLAGS $CFLAGS -arch ppc -arch i386 -c -o foo.o foo.c 2>&1 > /dev/null || noskip=false -rm -f foo.o +$CC $CPPFLAGS $CFLAGS -arch ppc -arch i386 -o simple simple.c 2>&1 > /dev/null || noskip=false +rm -f simple } AT_CHECK([$noskip || (exit 77)]) +AT_DATA([foo.c],[[ +int x=0; +]]) + AT_DATA([baz.c],[[ int y=0; ]]) -- 2.47.2