bug-coreutils
[Top][All Lists]
Advanced

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

Re: Misc Problems with coreutils-5.0.90


From: Jim Meyering
Subject: Re: Misc Problems with coreutils-5.0.90
Date: Sat, 09 Aug 2003 14:29:06 +0200

Vin Shelton <address@hidden> wrote:
> 3. 'shred' fails the remove test under both SunOS-5.5.1 and SunOS-5.8:

Thanks for reporting that.
It was fixed like this:

2003-08-01  Jim Meyering  <address@hidden>

        * tests/shred/remove: Ensure that $? is 0 for the final `exit 0'.
        Otherwise, with at least the /bin/sh from HPUX 10.20,
        the trap code would end up converting that to exit 1 and thus an
        unexpected test failure.  Reported by Christian Krackowizer.

Index: tests/shred/remove
===================================================================
RCS file: /fetish/cu/tests/shred/remove,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -u -r1.9 -r1.10
--- tests/shred/remove  19 Jul 2003 11:47:17 -0000      1.9
+++ tests/shred/remove  1 Aug 2003 22:33:04 -0000       1.10
@@ -34,6 +34,6 @@ fail=0
 # This would take so long that it appears to infloop
 # when using version from fileutils-4.0k.
 # When the command completes, expect it to fail.
-shred -u $file > /dev/null 2>&1 && fail=1
+shred -u $file > /dev/null 2>&1 && fail=1 || :
 
 exit $fail




reply via email to

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