diff options
author | Peter O'Gorman <peter@pogma.com> | 2008-05-31 12:12:31 -0500 |
---|---|---|
committer | Peter O'Gorman <peter@pogma.com> | 2008-05-31 12:12:31 -0500 |
commit | be6f90aa33bfaa28dcaba8cc269ef504a51f6f9a (patch) | |
tree | e4964d3c8863dc0190752fd12a44591f519f086c /tests/darwin.at | |
parent | 49db3a0a4cf26382d01c209ad4004e7eb2dd1be0 (diff) | |
download | libtool-be6f90aa33bfaa28dcaba8cc269ef504a51f6f9a.tar.gz |
Skip darwin test if fat link fails.
* tests/darwin.at: Skip if we can not link a fat program.
Reported by Daniel Macks <dmacks@netspace.org>
Diffstat (limited to 'tests/darwin.at')
-rw-r--r-- | tests/darwin.at | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/darwin.at b/tests/darwin.at index 7e6d07ee..2ca56494 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; ]]) |