]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Minor testsuite improvements.
authorEric Blake <ebb9@byu.net>
Mon, 28 Jan 2008 14:02:43 +0000 (07:02 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 28 Jan 2008 14:02:43 +0000 (07:02 -0700)
* lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
forks when sanitizing PATH.  Always output machine information,
not just when atconfig was located.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/autotest/general.m4

index 49cfa4597deef0d6c4aec681d2f61f5d6d5b074a..b8e7fb0dc825f40e9abbd73fb494755ba6ed2081 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-01-28  Eric Blake  <ebb9@byu.net>
 
+       Minor testsuite improvements.
+       * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
+       forks when sanitizing PATH.  Always output machine information,
+       not just when atconfig was located.
+
        Add 'testsuite -C dir'.
        * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
        detection...
index c1101adb2a1086d24ed573defa34df64f5c73551..662f2cbbaeba20ac0793338ea71d9515a16bf26e 100644 (file)
@@ -785,8 +785,11 @@ esac])
 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
 at_new_path=
 _AS_PATH_WALK([$at_path],
-[as_dir=`(cd "$as_dir" && pwd) 2>/dev/null`
-test -d "$as_dir" || continue
+[test -d "$as_dir" || continue
+case $as_dir in
+  [[\\/]]* | ?:[[\\/]]* ) ;;
+  * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
+esac
 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
   *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
   $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
@@ -832,10 +835,11 @@ AS_BOX(m4_defn([AT_TESTSUITE_NAME])[.])
       echo
     done
 
-    AS_UNAME
-    echo
   fi
 
+  AS_UNAME
+  echo
+
   # Contents of the config files.
   for at_file in atconfig atlocal
   do