From 619ffb2bff2e87d077562d024dfd10a202fda885 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 20 May 2000 08:48:39 +0000 Subject: fail if final rm fails --- tests/rm/hash | 2 +- tests/rm/r-2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rm/hash b/tests/rm/hash index d57cf4d4b..17587b182 100755 --- a/tests/rm/hash +++ b/tests/rm/hash @@ -10,7 +10,7 @@ fi pwd=`pwd` tmp=hash-$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd $pwd; rm -rf $tmp || exit $?; exit $status' 0 trap 'exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/rm/r-2 b/tests/rm/r-2 index e33a69d7c..596581cd3 100755 --- a/tests/rm/r-2 +++ b/tests/rm/r-2 @@ -7,7 +7,7 @@ fi pwd=`pwd` tmp=r2-$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd $pwd; rm -rf $tmp || exit $?; exit $status' 0 trap 'exit $?' 1 2 13 15 framework_failure=0 -- cgit v1.2.3-70-g09d2