comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/TruffleVMSingleThreadedTest.java @ 21490:3286fb5fea4a

Introducing standard I/O and error into Env and using TruffleVM to execute SL test cases. Adding SLTckTest to verify SL language interop.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Tue, 26 May 2015 19:11:36 +0200
parents 99942eac9c6d
children 31fc2fce38f3
comparison
equal deleted inserted replaced
21489:b3f1d8b23037 21490:3286fb5fea4a
33 public class TruffleVMSingleThreadedTest { 33 public class TruffleVMSingleThreadedTest {
34 TruffleVM tvm; 34 TruffleVM tvm;
35 35
36 @Before 36 @Before
37 public void initInDifferentThread() throws InterruptedException { 37 public void initInDifferentThread() throws InterruptedException {
38 final TruffleVM.Builder b = TruffleVM.newVM();
38 Thread t = new Thread("Initializer") { 39 Thread t = new Thread("Initializer") {
39 @Override 40 @Override
40 public void run() { 41 public void run() {
41 tvm = TruffleVM.create(); 42 tvm = b.build();
42 } 43 }
43 }; 44 };
44 t.start(); 45 t.start();
45 t.join(); 46 t.join();
46 } 47 }