Skip to content

Commit 8c1c73e

Browse files
committed
Fix TruffleTCKFeature.findTCKTests() for MX_BUILD_EXPLODED=true
1 parent a893c8b commit 8c1c73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffle/src/com.oracle.truffle.tck.tests/src/com/oracle/truffle/tck/tests/TruffleTCKFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static boolean isJUnitEntryPoint(Method method) {
126126
private static Collection<String> findTCKTests() {
127127
try {
128128
URL resource = TruffleTCKFeature.class.getResource("TruffleTCKFeature.class");
129-
try (FileSystem fileSystem = FileSystems.newFileSystem(resource.toURI(), Map.of())) {
129+
try (FileSystem fileSystem = "jar".equals(resource.getProtocol()) ? FileSystems.newFileSystem(resource.toURI(), Map.of()) : null) {
130130
Path path = Path.of(resource.toURI());
131131
try (Stream<Path> siblingResources = Files.list(path.getParent())) {
132132
String packageName = TruffleTCKFeature.class.getPackageName();

0 commit comments

Comments
 (0)