From 270239e0856c7e7dc113477fb855e44d0c65dc51 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sat, 30 Jun 2001 20:27:42 +0000 Subject: [PATCH] Porting test improvements from multi-language-branch: * tests/defs: Find and set the value of CC probed by libtool.m4 * tests/link-2.test: Use a .lo wrapper script, and the value of CC set by defs instead of hardcoding gcc. * tests/link.test: Use the value of CC set by defs instead of hardcoding gcc. * tests/quote.test: Ditto. * tests/suffix.test: Ditto. --- ChangeLog | 9 +++++++++ tests/defs | 4 ++++ tests/link-2.test | 15 +++++++++++++-- tests/link.test | 2 +- tests/quote.test | 6 +++--- tests/suffix.test | 2 +- 6 files changed, 31 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 270fc43b5..a62193768 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2001-06-30 Gary V. Vaughan + Porting test improvements from multi-language-branch: + * tests/defs: Find and set the value of CC probed by libtool.m4 + * tests/link-2.test: Use a .lo wrapper script, and the value of + CC set by defs instead of hardcoding gcc. + * tests/link.test: Use the value of CC set by defs instead of + hardcoding gcc. + * tests/quote.test: Ditto. + * tests/suffix.test: Ditto. + * libtool.m4 (_LT_AC_LTCONFIG_HACK) [aix*]: Always set lt_prog_compiler_wl to `-Wl'. Reported by Albert Chin-A-Young diff --git a/tests/defs b/tests/defs index 214207de6..971091169 100644 --- a/tests/defs +++ b/tests/defs @@ -12,6 +12,7 @@ progname=`echo "$0" | sed 's%^.*/%%'` libtool="../libtool" make="${MAKE-make}" +SHELL="${CONFIG_SHELL-/bin/sh}" prefix="./_inst" if test "$need_prefix" = yes; then @@ -23,6 +24,9 @@ else prefix=NONE fi +# Extract CC from the libtool configuration +eval `$libtool --config | grep '^CC='` + # See how redirections should work. case "$VERBOSE" in NO | no | 0 | "") diff --git a/tests/link-2.test b/tests/link-2.test index df3c00e97..55f360a24 100755 --- a/tests/link-2.test +++ b/tests/link-2.test @@ -10,10 +10,21 @@ if test -z "$srcdir"; then fi . $srcdir/defs || exit 1 +rm -f hell.lo +cat > hell.lo <&1; exit 0) | grep 'cannot'; then : else - echo "recognized $name as a valid source file" + echo "incorrectly recognized $name as a valid source file" status=1 fi done -- 2.47.3