path: root/t/
diff options
authorPete Wyckoff <>2013-01-27 03:11:17 (GMT)
committerJunio C Hamano <>2013-01-27 06:00:39 (GMT)
commite9df0f9c7a7fbaed924273d0a9b502171ed23b7c (patch)
treeefc692207e049a3ddfc3403c3ab190127563a6a1 /t/
parent9d01ae9f20435b90619c909e9cbb9ca29f7de494 (diff)
git p4: cygwin p4 client does not mark read-only
There are some old versions of p4, compiled for cygwin, that treat read-only files differently. Normally, a file that is not open is read-only, meaning that "test -w" on the file is false. This works on unix, and it works on windows using the NT version of p4. The cygwin version of p4, though, changes the permissions, but does not set the windows read-only attribute, so "test -w" returns false. Notice this oddity and make the tests work, even on cygiwn. Signed-off-by: Pete Wyckoff <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 2 insertions, 2 deletions
diff --git a/t/ b/t/
index a911988..77f6349 100755
--- a/t/
+++ b/t/
@@ -333,7 +333,7 @@ test_expect_success 'subdir clone, submit copy' '
cd "$cli" &&
test_path_is_file dir1/file11a &&
- test ! -w dir1/file11a
+ ! is_cli_file_writeable dir1/file11a
@@ -353,7 +353,7 @@ test_expect_success 'subdir clone, submit rename' '
cd "$cli" &&
test_path_is_missing dir1/file13 &&
test_path_is_file dir1/file13a &&
- test ! -w dir1/file13a
+ ! is_cli_file_writeable dir1/file13a