bug-autoconf
[Top][All Lists]
Advanced

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

Re: autotest strips trailing whitespace from expected stdout


From: Ralf Wildenhues
Subject: Re: autotest strips trailing whitespace from expected stdout
Date: Fri, 22 Jun 2007 09:58:35 +0200
User-agent: Mutt/1.5.15 (2007-05-20)

Hello Mike,

* Mike Frysinger wrote on Fri, Jun 22, 2007 at 08:09:10AM CEST:
> i was converting another project to autotest when i hit a test failure due to 
> trailing whitespace mismatch ... consider this:
> AT_SETUP(white)
> AT_CHECK([echo "WHITESPACE: "], [0], [dnl
> WHITESPACE: 
> ])
> 
> will result in a test failure as trailing whitespace is stripped from the 
> expected stdout when generating the testsuite file but the command run still 
> produces the trailing whitespace ;(

Yes.  This is intented, albeit maybe arguable.  Quoting
`(autoconf.info)Quadrigraphs':

|   The empty quadrigraph can be used:
|
|   - to mark trailing spaces explicitly
|
|     Trailing spaces are smashed by `autom4te'.  This is a feature.

So you can use
  WHITESPACE: @&t@

Hope that helps.

Cheers,
Ralf




reply via email to

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