From dcb837bd099dfc66a50e0a7f100248af5fce8fe2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 3 Feb 2009 18:44:08 +0100 Subject: [PATCH] Skip executeBit-tests for filesystems which do not support this feature MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Tor Arne Vestbø Signed-off-by: Shawn O. Pearce --- org.spearce.jgit.test/tst/org/spearce/jgit/lib/T0007_Index.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --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 index 499812eb..fbda4fb7 100644 --- 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 @@ -46,6 +46,7 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.spearce.jgit.lib.GitIndex.Entry; +import org.spearce.jgit.util.FS; public class T0007_Index extends RepositoryTestCase { @@ -319,6 +320,10 @@ public class T0007_Index extends RepositoryTestCase { } public void test030_executeBit_coreModeTrue() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, Error, Exception { + if (!FS.INSTANCE.supportsExecute()) { + System.err.println("Test ignored since platform FS does not support the execute permission"); + return; + } try { // coremode true is the default, typically set to false // by git init (but not jgit!) @@ -370,6 +375,10 @@ public class T0007_Index extends RepositoryTestCase { } public void test031_executeBit_coreModeFalse() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, Error, Exception { + if (!FS.INSTANCE.supportsExecute()) { + System.err.println("Test ignored since platform FS does not support the execute permission"); + return; + } try { // coremode true is the default, typically set to false // by git init (but not jgit!) -- 2.11.4.GIT