Skip to content

Commit b80fd65

Browse files
committed
Support Windows
1 parent 2db52f3 commit b80fd65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/junit-platform-native/src/main/java/org/graalvm/junit/platform/NativeImageJUnitLauncher.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import org.junit.platform.launcher.listeners.UniqueIdTrackingListener;
5656
import org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener;
5757

58+
import java.io.File;
5859
import java.io.IOException;
5960
import java.io.PrintWriter;
6061
import java.io.UncheckedIOException;
@@ -218,15 +219,15 @@ private static Path getTestIDsFromDefaultLocations() {
218219
}
219220

220221
private static Path getGradleTestIdsDefaultLocation() {
221-
return Path.of(getBuildDirectory("/build/"))
222+
return Path.of(getBuildDirectory(File.separator + "build" + File.separator))
222223
.resolve("test-results")
223224
.resolve("test")
224225
.resolve("testlist")
225226
.toAbsolutePath();
226227
}
227228

228229
private static Path getMavenTestIDsDefaultLocation() {
229-
return Path.of(getBuildDirectory("/target/"))
230+
return Path.of(getBuildDirectory(File.separator + "target" + File.separator))
230231
.resolve("test-ids")
231232
.toAbsolutePath();
232233
}

0 commit comments

Comments
 (0)