Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/instrument/SLInstrumentTestRunner.java @ 22436:46a6d3eb790c
Adopt TCK and Polyglot after changes to execute and invoke message
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Mon, 30 Nov 2015 10:24:00 +0100 |
parents | 906a5f6e07cc |
children |
comparison
equal
deleted
inserted
replaced
22420:5e2dd9c3fa7d | 22436:46a6d3eb790c |
---|---|
255 SLPrintAssigmentValueListener slPrintAssigmentValueListener = new SLPrintAssigmentValueListener(ps); | 255 SLPrintAssigmentValueListener slPrintAssigmentValueListener = new SLPrintAssigmentValueListener(ps); |
256 instrumenter.attach(probe, slPrintAssigmentValueListener, "SL print assignment value"); | 256 instrumenter.attach(probe, slPrintAssigmentValueListener, "SL print assignment value"); |
257 } | 257 } |
258 | 258 |
259 PolyglotEngine.Value main = vm.findGlobalSymbol("main"); | 259 PolyglotEngine.Value main = vm.findGlobalSymbol("main"); |
260 main.invoke(null); | 260 main.execute(); |
261 } else { | 261 } else { |
262 notifier.fireTestFailure(new Failure(testCase.name, new UnsupportedOperationException("No instrumentation found."))); | 262 notifier.fireTestFailure(new Failure(testCase.name, new UnsupportedOperationException("No instrumentation found."))); |
263 } | 263 } |
264 ps.flush(); | 264 ps.flush(); |
265 String actualOutput = new String(out.toByteArray()); | 265 String actualOutput = new String(out.toByteArray()); |