From 572d582d8d5e2ae486bb7e67b2d960d4c5480c4f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 1 Aug 2003 22:33:04 +0000 Subject: 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. --- tests/shred/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shred') diff --git a/tests/shred/remove b/tests/shred/remove index 5f2508113..32a53f941 100755 --- a/tests/shred/remove +++ b/tests/shred/remove @@ -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 -- cgit v1.2.3-54-g00ecf