Skip to content

Commit

Permalink
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions truffle/src/test/java/org/jruby/truffle/tck/RubyTckTest.java
Original file line number Diff line number Diff line change
@@ -23,16 +23,21 @@

public class RubyTckTest extends TruffleTCK {

private static PolyglotEngine engine;

@Test
public void checkVM() {
PolyglotEngine engine = PolyglotEngine.newBuilder().build();
assertNotNull(engine.getLanguages().get(mimeType()));
}

@Override
protected PolyglotEngine prepareVM() throws Exception {
PolyglotEngine engine = PolyglotEngine.newBuilder().build();
engine.eval(Source.fromFileName("src/test/ruby/tck.rb"));
protected synchronized PolyglotEngine prepareVM() throws Exception {
if (engine == null) {
engine = PolyglotEngine.newBuilder().build();
engine.eval(Source.fromFileName("src/test/ruby/tck.rb"));
}

return engine;
}

@@ -111,4 +116,13 @@ protected String complexCopy() {
return "complex_copy";
}

@Override
public void testCoExistanceOfMultipleLanguageInstances() throws Exception {
/*
* Not running this test as it clears the engine, but we're caching that globally to avoid creating tens of
* engines concurrently.
*/

}

}

1 comment on commit 1ae55cf

@eregon
Copy link
Member

@eregon eregon commented on 1ae55cf Dec 22, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sorry, something went wrong.

Please sign in to comment.