* [JGIT PATCH] Skip executeBit-tests for filesystems which do not support this feature
@ 2009-02-03 17:44 Tor Arne Vestbø
0 siblings, 0 replies; only message in thread
From: Tor Arne Vestbø @ 2009-02-03 17:44 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git, Robin Rosenberg
Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
---
.../tst/org/spearce/jgit/lib/T0007_Index.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
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 499812e..fbda4fb 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.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 void testCheckout() throws Exception {
}
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 void test030_executeBit_coreModeTrue() throws IllegalArgumentException, I
}
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!)
--
1.6.1.2.309.g2ea3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-03 17:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 17:44 [JGIT PATCH] Skip executeBit-tests for filesystems which do not support this feature Tor Arne Vestbø
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.