I just pushed this.

Peter
-- 
Peter O'Gorman
http://pogma.com
>From be6f90aa33bfaa28dcaba8cc269ef504a51f6f9a Mon Sep 17 00:00:00 2001
From: Peter O'Gorman <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
---
 ChangeLog       |    6 ++++++
 tests/darwin.at |   12 ++++++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 178d505..90c8ebd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-31  Peter O'Gorman  <[EMAIL PROTECTED]>
+
+	Skip darwin test if fat link fails.
+	* tests/darwin.at: Skip if we can not link a fat program.
+	Reported by Daniel Macks <[EMAIL PROTECTED]>
+
 2008-05-26  Ralf Wildenhues  <[EMAIL PROTECTED]>
 
 	libtoolize should not remove config.guess, config.sub.
diff --git a/tests/darwin.at b/tests/darwin.at
index 7e6d07e..2ca5649 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;
 ]])
-- 
1.5.4.1

Reply via email to