automake-patches
[Top][All Lists]
Advanced

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

Re: Problems with the new Var code


From: Alexandre Duret-Lutz
Subject: Re: Problems with the new Var code
Date: Tue, 03 Jun 2003 23:30:23 +0200
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3 (gnu/linux)

>>> "Akim" == Akim Demaille <address@hidden> writes:

 Akim> Alexandre Duret-Lutz said:
[...]
 >> this test was already expecting a failure it did not see the
 >> failure into the failure :)

 Akim> Actually I meant failing harder, with a different exit status than 1.
[...]

The test suite is not really equipped to check exit codes
(sounds like a good task for a shell function).  

Among the things I wanted to do was to get rid of all these
`$AUTOMAKE && exit 1' in the test suite, as I've discovered
many tests which were failing for the wrong reason.  
The current idiom I use is 

  $AUTOMAKE 2>stderr && exit 1
  cat stderr
  grep 'expected diagnostic' stderr

Maybe this should become

  AUTOMAKE_error n
  grep 'expected diagnostic' stderr

(Where AUTOMAKE_error will make sure that 
$AUTOMAKE exits with $? = n.)
-- 
Alexandre Duret-Lutz





reply via email to

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