autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: './testsuite -C -' can succeed


From: Ralf Wildenhues
Subject: Re: './testsuite -C -' can succeed
Date: Tue, 4 Mar 2008 07:39:23 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hi Eric,

* Eric Blake wrote on Tue, Mar 04, 2008 at 03:30:23AM CET:
> According to Ralf Wildenhues on 3/3/2008 3:30 PM:
> |
> | On AIX 5.3, I experienced one testsuite failure because
> |   ./micro-suite -C -
> |
> | actually succeeded [...]

> But I thought we were already diagnosing an argument of `-':

D'oh.  I applied this trivial fix (the second change is just for
consistency).  Thanks for reminding me of this!

Cheers,
Ralf

    * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.

diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index 939119a..e8ca1dd 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -702,10 +702,10 @@ m4_divert_push([TESTS_BEGIN])dnl
 
 # Take any -C into account.
 if $at_change_dir ; then
-  if test x- = x$"at_dir" ; then
+  if test x- = "x$at_dir" ; then
     at_dir=./-
   fi
-  test x != x"$at_dir" && cd "$at_dir" \
+  test x != "x$at_dir" && cd "$at_dir" \
     || AS_ERROR([unable to change directory])
   at_dir=`pwd`
 fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]