Skip to content

Commit

Permalink
[GR-48571] TCK language provider has a runtime dependency on the test…
Browse files Browse the repository at this point in the history
…ed language.

PullRequest: truffleruby/4026
  • Loading branch information
tzezula committed Oct 10, 2023
2 parents dce0412 + cc9c5ec commit 21ad763
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 11 additions & 4 deletions mx.truffleruby/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@
},

"org.truffleruby.tck": {
"testProject": True,
"dir": "src/tck",
"sourceDirs": ["java", "ruby"],
"dependencies": ["truffle:TRUFFLE_TCK"],
Expand Down Expand Up @@ -830,11 +829,19 @@
},

"TRUFFLERUBY-TCK": {
"testDistribution": True,
"dependencies": ["org.truffleruby.tck"],
"distDependencies": ["truffle:TRUFFLE_TCK"],
"distDependencies": [
"truffle:TRUFFLE_TCK",
# runtime-only dependencies
"TRUFFLERUBY",
],
"description" : "Truffle TCK provider for Ruby language.",
"license": ["EPL-2.0"],
"maven": False,
"maven": {
"artifactId": "ruby-truffle-tck",
"tag": ["default", "public"],
},
"noMavenJavadoc": True,
},
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
Expand Down Expand Up @@ -286,7 +287,7 @@ private Source getSource(String path) {
throw new FileNotFoundException(path);
}

final Reader reader = new InputStreamReader(stream);
final Reader reader = new InputStreamReader(stream, StandardCharsets.UTF_8);
return Source.newBuilder(getId(), reader, new File(path).getName()).build();
} catch (IOException e) {
throw new Error(e);
Expand Down

0 comments on commit 21ad763

Please sign in to comment.