Skip to content

Commit

Permalink
Fix TruffleTCKFeature.findTCKTests() for MX_BUILD_EXPLODED=true
Browse files Browse the repository at this point in the history
  • Loading branch information
olpaw committed May 5, 2022
1 parent 5417f61 commit 8505eef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private static boolean isJUnitEntryPoint(Method method) {
private static Collection<String> findTCKTests() {
try {
URL resource = TruffleTCKFeature.class.getResource("TruffleTCKFeature.class");
try (FileSystem fileSystem = FileSystems.newFileSystem(resource.toURI(), Map.of())) {
try (FileSystem fileSystem = "jar".equals(resource.getProtocol()) ? FileSystems.newFileSystem(resource.toURI(), Map.of()) : null) {
Path path = Path.of(resource.toURI());
try (Stream<Path> siblingResources = Files.list(path.getParent())) {
String packageName = TruffleTCKFeature.class.getPackageName();
Expand Down

0 comments on commit 8505eef

Please sign in to comment.