summaryrefslogtreecommitdiff
path: root/tests/sample-test
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-06-15 09:46:32 +0000
committerJim Meyering <jim@meyering.net>2002-06-15 09:46:32 +0000
commitbf7c8ba557c70ac20dc87f0df1508312b668ecab (patch)
treec659cbac2545c0bd2a5d3348cad2d42036b325c7 /tests/sample-test
parent59f339c1f8dd093b2aa9a1b592443d5537f3027f (diff)
downloadcoreutils-bf7c8ba557c70ac20dc87f0df1508312b668ecab.tar.xz
(trap): Make sure the temporary hierarchy is writable before removing it.
Diffstat (limited to 'tests/sample-test')
-rw-r--r--tests/sample-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sample-test b/tests/sample-test
index 104f83db8..3af9e6819 100644
--- a/tests/sample-test
+++ b/tests/sample-test
@@ -13,7 +13,7 @@ fi
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
+trap 'status=$?; cd $pwd; chmod -R 700 $t0; rm -rf $t0 && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
framework_failure=0