Skip to content

Commit 678e9fa

Browse files
committed
Adjust a test to work properly on Windows
Windows does things a little different than everybody else, just a little. Just enough to be annoying in its neediness, in its desire to make developers spend so much time on Windows that they cannot afford to spend time doing some more useful things. Read: here goes another Microsoft time tax. Thanks, Jayde Jenkins, for pointing out Microsoft Windows' problems. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent af9599c commit 678e9fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/scijava/util/TestUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ public class TestUtilsTest {
5050
public void testCreateTemporaryDirectory() throws IOException {
5151
final File tmp1 = TestUtils.createTemporaryDirectory("test-utils-test-");
5252
assertTrue("Not in target/: " + tmp1.getAbsolutePath(), tmp1
53-
.getAbsolutePath().contains("/target/"));
53+
.getAbsolutePath().replace('\\', '/').contains("/target/"));
5454
final File tmp2 = TestUtils.createTemporaryDirectory("test-utils-test-");
5555
assertTrue(!tmp1.getAbsolutePath().equals(tmp2.getAbsolutePath()));
5656

5757
final File tmp3 =
5858
TestUtils.createTemporaryDirectory("test-utils-test-", getClass());
5959
assertTrue("Not in target/: " + tmp3.getAbsolutePath(), tmp3
60-
.getAbsolutePath().contains("/target/"));
60+
.getAbsolutePath().replace('\\', '/').contains("/target/"));
6161
final File tmp4 =
6262
TestUtils.createTemporaryDirectory("test-utils-test-", getClass());
6363
assertTrue(!tmp3.getAbsolutePath().equals(tmp4.getAbsolutePath()));

0 commit comments

Comments
 (0)