bug-diffutils
[Top][All Lists]
Advanced

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

Re: [bug-diffutils] diffutils-3.2 : 9 of 9 tests failed


From: Paul Eggert
Subject: Re: [bug-diffutils] diffutils-3.2 : 9 of 9 tests failed
Date: Tue, 26 Mar 2013 12:00:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

On 03/26/2013 09:00 AM, Dennis Clarke wrote:
> Looks like diffutils has a pile of dependencies on other GNU tools like
> maybe coreutils first.

I don't see any dependencies there.

The build procedure should work on Solaris 8,
but we haven't tested that (I have no access to Solaris 8
hosts; Oracle dropped support for them a while ago and my
last Solaris 8 host died a few months ago).

Anyway, here's the first test failure you reported:

+ fail=0
+ cat
+ cat
+ cat
+ echo a
+ echo b
+ diff a b
+ test 2 = 1
+ fail=1
+ sed -e 's/^\([-+*][-+*][-+*] [^       ]*\)    .*/\1/' out
+ mv k out
++ echo
++ tr ' ' _
+ compare out exp-
+ diff -u out exp-
diff: memory exhausted
+ fail=1

This resulted from this test script:

echo a > a
echo b > b
for opt in '' -u -c; do
  diff $opt a b > out 2> err; test $? = 1 || fail=1
  # Remove date and time.                                                       
  sed -e 's/^\([-+*][-+*][-+*] [^       ]*\)    .*/\1/' out > k; mv k out
  compare exp-$(echo $opt|tr ' ' _) out || fail=1
done

Can you investigate why that script failed?  In particular, this:

echo a > a
echo b > b
diff a b
echo $?

Should output "1" at the end, but it's outputting "2" for you,
which is a bug.  Can you reproduce that bug yourself, and/or
use a debugger to figure out what went wrong for you?



reply via email to

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