From: "Tor Arne Vestbø" <torarnv@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org, Robin Rosenberg <robin.rosenberg@dewire.com>
Subject: [JGIT PATCH] Skip executeBit-tests for filesystems which do not support this feature
Date: Tue, 3 Feb 2009 18:44:08 +0100 [thread overview]
Message-ID: <1233683048-22767-1-git-send-email-torarnv@gmail.com> (raw)
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
reply other threads:[~2009-02-03 17:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1233683048-22767-1-git-send-email-torarnv@gmail.com \
--to=torarnv@gmail.com \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).