Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Truffle] Debug Travis.
Browse files Browse the repository at this point in the history
chrisseaton committed May 12, 2016
1 parent cfcfb1b commit 9a82b1e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -63,6 +63,8 @@ public boolean require(VirtualFrame frame, String feature, IndirectCallNode call
}

private String findFeature(String feature) {
System.err.println("findFeature " + feature);

final String currentDirectory = context.getNativePlatform().getPosix().getcwd();

if (feature.startsWith("./")) {
@@ -90,6 +92,8 @@ private String findFeature(String feature) {
}

private String findFeatureWithAndWithoutExtension(String path) {
System.err.println("findFeatureWithAndWithoutExtension " + path);

final String asCExt = findFeatureWithExactPath(path + RubyLanguage.CEXT_EXTENSION);

if (asCExt != null) {
@@ -112,13 +116,16 @@ private String findFeatureWithAndWithoutExtension(String path) {
}

private String findFeatureWithExactPath(String path) {
System.err.println("findFeatureWithExactPath " + path);

if (path.startsWith(SourceLoader.TRUFFLE_SCHEME) || path.startsWith(SourceLoader.JRUBY_SCHEME)) {
return path;
}

final File file = new File(path);

if (!file.isFile()) {
System.err.println("not a file " + path);
return null;
}

0 comments on commit 9a82b1e

Please sign in to comment.