Skip to content

Commit

Permalink
[Truffle] Fix -S
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Dec 9, 2016
1 parent 07df8f1 commit 80cc7f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/truffle/integration/irb.sh
Expand Up @@ -4,7 +4,7 @@ source test/truffle/common.sh.inc

set -e

jt ruby -rirb -e 'IRB.start(__FILE__)' < test/truffle/integration/irb/input.txt > temp.txt
jt ruby -S irb < test/truffle/integration/irb/input.txt > temp.txt

if ! cmp --silent temp.txt test/truffle/integration/irb/output.txt
then
Expand Down
Expand Up @@ -601,17 +601,17 @@ private String resolve(String path, String scriptName) {
if (RubyInstanceConfig.DEBUG_SCRIPT_RESOLUTION) {
config.getError().println("Trying path: " + path);
}
/*try {
FileResource fullName = JRubyFile.createRestrictedResource(path, scriptName);
try {
File fullName = new File(path, scriptName);
if (fullName.exists() && fullName.isFile()) {
if (RubyInstanceConfig.DEBUG_SCRIPT_RESOLUTION) {
config.getError().println("Found: " + fullName.absolutePath());
config.getError().println("Found: " + fullName.getAbsolutePath());
}
return fullName.absolutePath();
return fullName.getAbsolutePath();
}
} catch (Exception e) {
// keep going
}*/
}
return null;
}

Expand Down

0 comments on commit 80cc7f1

Please sign in to comment.