tests: clean after SANITY tests
[gitweb.git] / t / t0070-fundamental.sh
index 991ed2a48dbf15fb4cb794a587ad900071391e11..60e3de7b7b39a5ac7989062164fc8e33a0403b20 100755 (executable)
@@ -19,8 +19,8 @@ test_expect_success 'mktemp to nonexistent directory prints filename' '
 
 test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints filename' '
        mkdir cannotwrite &&
-       chmod -w cannotwrite &&
        test_when_finished "chmod +w cannotwrite" &&
+       chmod -w cannotwrite &&
        test_must_fail test-mktemp cannotwrite/testXXXXXX 2>err &&
        grep "cannotwrite/test" err
 '