]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: use autotest as_unset rather than rerolling $unset locally.
authorGary V. Vaughan <gary@gnu.org>
Sun, 27 Oct 2013 21:13:34 +0000 (10:13 +1300)
committerGary V. Vaughan <gary@gnu.org>
Sun, 27 Oct 2013 21:13:34 +0000 (10:13 +1300)
On at least Unixware 7.1.4, the shell variable 'unset' gets set
to 'no' during the testsuite run, breaking several test cases.
We should have been using Autotest $as_unset anyway.
* tests/testsuite.at (unset): Remove test and variable setting.
(LT_AT_MAKE): Use $as_unset as provided by autotest boilerplate
instead of our own $unset.
* tests/demo.at (uninstalled libraries ave priority): Likewise.
Reported by Tim Rice.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
tests/demo.at
tests/testsuite.at

index f1fd9a81b79db0249711e1d92d0402177c319f35..c0a148611efb0cfac4264674d53c0cbbb130f893 100644 (file)
@@ -796,7 +796,7 @@ rm -f libhello.la "hell$EXEEXT"
 
 # If this check fails (i.e. the make succeeds), then the installed library
 # was used, which is wrong.
-AT_CHECK([$unset LIBTOOL LIBTOOLIZE; $MAKE hell$EXEEXT libhello_la_OBJECTS=hello.lo || (exit 1)],
+AT_CHECK([$as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE hell$EXEEXT libhello_la_OBJECTS=hello.lo || (exit 1)],
          [1], [ignore], [ignore])
 
 AT_CLEANUP
index ecbdfc22f52952cbbf258c0cd403665553afd43f..99122be64ded7516063d51a6d1d7afaa30a8f1a5 100644 (file)
@@ -51,11 +51,6 @@ fi
 if test -n "$to_tool_file_cmd"; then
   configure_options="$configure_options lt_cv_to_tool_file_cmd=$to_tool_file_cmd"
 fi
-if (FOO=bar; unset FOO) >/dev/null 2>&1; then
-  unset=unset
-else
-  unset=false
-fi
 : ${mkdir_p="$abs_top_srcdir/build-aux/install-sh -d"}
 # Fix relative paths in $lt_INSTALL
 case $lt_INSTALL in
@@ -193,7 +188,7 @@ m4_define([LT_AT_CONFIGURE],
 m4_define([LT_AT_MAKE],
 [for target in m4_default([$1], [all])
 do
-  AT_CHECK([$unset LIBTOOL LIBTOOLIZE; $MAKE $target $2], [0], [ignore], [ignore])
+  AT_CHECK([$as_unset LIBTOOL; $as_unset LIBTOOLIZE; $MAKE $target $2], [0], [ignore], [ignore])
 done
 ])