autoconf
[Top][All Lists]
Advanced

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

Re: cmp in test scripts


From: John Poltorak
Subject: Re: cmp in test scripts
Date: Fri, 25 Jan 2002 01:44:38 +0000

On Thu, Jan 24, 2002 at 08:09:13PM -0500, Earnie Boyd wrote:

> > "hello, world\n" is longer on a DOS filesystem than on Unix so cmp will
> > distinguish between whereas diff won't.
> > 
> 
> No it isn't.  "hello, world\n" is the same size in both worlds.  "hello,
> world\r\n" is the same size in both worlds.  

No it isn't.

> A properly ported cmp would
> be a better method.  You're problem isn't an autoconf problem, it's a
> tool problem.

cmp is working fine, it simply is not appropriate in certain tests when 
the output from a test results in DOS line terminated files and they are 
being compared against Unix line terminated files and resulting in a 
failure whereas the output is exactly as expected and would result in 
success if diff was used instead.

 
> Earnie.


-- 
John





reply via email to

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