From 330af1bbabb2673a918e1db4192331cbfc5c0f4e Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 25 Feb 2015 11:54:06 +0100 Subject: symlink.test: Make the test more robust "mv" may or may not overwrite a read-only file by default, depending on whether or not it is considered to be interactive. Removing the file explicitly before avoids that uncertainty and makes it easier to play the test case manually. --- test/symlink.test | 1 + 1 file changed, 1 insertion(+) diff --git a/test/symlink.test b/test/symlink.test index 51a81f2..a9fa45a 100644 --- a/test/symlink.test +++ b/test/symlink.test @@ -73,6 +73,7 @@ > +foo changed 4 # Test the refresh --backup when target is read-only + $ rm -f test.diff $ mv patches/test.diff . $ ln -s ../test.diff patches/test.diff $ chmod -w test.diff -- cgit