From 95adb1b069aba79b1a14a0a24e8e4530c73d642b Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Mon, 6 Nov 2023 09:19:12 +0100 Subject: [PATCH] Ignore one test on Windows, reduce usage of internal Exceptions in test --- src/test/java/org/dstadler/jgitfs/JGitFSTest.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/dstadler/jgitfs/JGitFSTest.java b/src/test/java/org/dstadler/jgitfs/JGitFSTest.java index a7f5f475..ca800538 100644 --- a/src/test/java/org/dstadler/jgitfs/JGitFSTest.java +++ b/src/test/java/org/dstadler/jgitfs/JGitFSTest.java @@ -12,8 +12,6 @@ import static org.junit.Assert.*; -import net.fusejna.FuseException; - public class JGitFSTest { @Test @@ -40,7 +38,10 @@ public void testMainOneArgFileDot() { } @Test - public void testMainOneArgDot() throws FuseException, IOException, InterruptedException { + public void testMainOneArgDot() throws Exception { + Assume.assumeFalse("Not executed on Windows for now because of https://github.com/EtiennePerot/fuse-jna/issues/40", + SystemUtils.IS_OS_WINDOWS); + try { JGitFS.main("--test-only", "."); } catch (IOException e) { @@ -72,7 +73,9 @@ public void testMainCurrentProject() { @Test public void testMainMultiple() throws Exception { - Assume.assumeFalse("Not executed on Windows for now because of https://github.com/EtiennePerot/fuse-jna/issues/44", SystemUtils.IS_OS_WINDOWS); + Assume.assumeFalse("Not executed on Windows for now because of https://github.com/EtiennePerot/fuse-jna/issues/44", + SystemUtils.IS_OS_WINDOWS); + try { // if we have one that works and the last one an invalid one we get an exception, but did the mounting // for the first one