bug-coreutils
[Top][All Lists]
Advanced

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

coreutils 5.0 failed rm3 and rm5 tests


From: Tony Leneis
Subject: coreutils 5.0 failed rm3 and rm5 tests
Date: Tue, 13 May 2003 22:01:15 -0700
User-agent: Mutt/1.5.3i

I built coreutils 5.0 on a Tru64 4.0F system, and it fails the rm3 and rm5
tests; however, I'm not sure it's a problem with rm.  The output from make
check shows a blank line missing from the output of rm:

out exp differ: char 1, line 1
--- out 2003-04-08 21:58:01.000000000 -0700
+++ exp 2003-04-08 21:58:01.000000000 -0700
@@ -1,4 +1,3 @@
-
 rm: descend into directory `z'
 rm: remove directory `z'
 rm: remove directory `z/d'
FAIL: rm3
PASS: rm4
cmp: EOF on exp
--- out 2003-04-08 21:58:02.000000000 -0700
+++ exp 2003-04-08 21:58:02.000000000 -0700
@@ -1,4 +1,3 @@
 rm: descend into directory `d'
 rm: remove directory `d/e'
 rm: remove directory `d'
-
FAIL: rm5

I think the problem is in the test harness - it's not taking into account
the final line from rm that ends in "? ".  When it runs tr that gets
converted into "\n " (i.e. the last line of the file contains only a space)
which sed then turns into an empty line.  The simple solution, I suspect,
is to simply add a blank line when creating the exp files in both the rm3
and rm5 test scripts.

-Tony

-- 
e-mail: address@hidden                 Computerized Vehicle Registration
phone : 503 402-3531                    2525 SW 1st Ave, Suite 450
FAX   : 503 294-1526                    Portland, OR 97201-4760
PGP   : 1024D/145E65E0  456A 740F F14C 64D6 EB07 E70E 037A 1601 145E 65E0




reply via email to

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