{"thread":{"id":"17534","subject":"[JGIT PATCH] Skip executeBit-tests for filesystems which do not support this feature","startedAt":"2009-02-03T17:44:08Z","lastAt":"2009-02-03T17:44:08Z","messageCount":1,"participants":["Tor Arne Vestbø"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"102998","messageId":"1233683048-22767-1-git-send-email-torarnv@gmail.com","threadId":"17534","inReplyTo":null,"subject":"[JGIT PATCH] Skip executeBit-tests for filesystems which do not support this feature","fromName":"Tor Arne Vestbø","fromEmail":"torarnv@gmail.com","sentAt":"2009-02-03T17:44:08Z","receivedAt":"2009-02-03T17:44:08Z","isPatch":true,"sender":{"key":"torarnv@gmail.com","avatar":"https://gravatar.com/avatar/847af0150a5a28ad86d9db1556a48aba04e7642c6a29a5a767f8c2bdf1720321?d=mp&s=160"},"body":"Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>\n---\n .../tst/org/spearce/jgit/lib/T0007_Index.java      |    9 +++++++++\n 1 files changed, 9 insertions(+), 0 deletions(-)\n\ndiff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/T0007_Index.java b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/T0007_Index.java\nindex 499812e..fbda4fb 100644\n--- a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/T0007_Index.java\n+++ b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/T0007_Index.java\n@@ -46,6 +46,7 @@\n import java.lang.reflect.Method;\n \n import org.spearce.jgit.lib.GitIndex.Entry;\n+import org.spearce.jgit.util.FS;\n \n public class T0007_Index extends RepositoryTestCase {\n \n@@ -319,6 +320,10 @@ public void testCheckout() throws Exception {\n \t}\n \n \tpublic void test030_executeBit_coreModeTrue() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, Error, Exception {\n+\t\tif (!FS.INSTANCE.supportsExecute()) {\n+\t\t\tSystem.err.println(\"Test ignored since platform FS does not support the execute permission\");\n+\t\t\treturn;\n+\t\t}\n \t\ttry {\n \t\t\t// coremode true is the default, typically set to false\n \t\t\t// by git init (but not jgit!)\n@@ -370,6 +375,10 @@ public void test030_executeBit_coreModeTrue() throws IllegalArgumentException, I\n \t}\n \n \tpublic void test031_executeBit_coreModeFalse() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, Error, Exception {\n+\t\tif (!FS.INSTANCE.supportsExecute()) {\n+\t\t\tSystem.err.println(\"Test ignored since platform FS does not support the execute permission\");\n+\t\t\treturn;\n+\t\t}\n \t\ttry {\n \t\t\t// coremode true is the default, typically set to false\n \t\t\t// by git init (but not jgit!)\n-- \n1.6.1.2.309.g2ea3\n"}]}