Mercurial > hg > truffle
diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/TruffleRuntimeTest.java @ 21938:0a6e10379b9b
Keeping only Truffle-related modules in this repository
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Fri, 12 Jun 2015 17:02:36 +0200 |
parents | c88ab4f1f04a |
children | e24237684856 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/TruffleRuntimeTest.java Fri Jun 12 14:53:05 2015 +0200 +++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/TruffleRuntimeTest.java Fri Jun 12 17:02:36 2015 +0200 @@ -68,6 +68,15 @@ } @Test + public void verifyTheRealRuntimeIsUsedOnRealGraal() { + TruffleRuntime r = Truffle.getRuntime(); + final String name = r.getClass().getName(); + if (name.endsWith("DefaultTruffleRuntime")) { + fail("Wrong name " + name + " with following System.getProperties:\n" + System.getProperties().toString()); + } + } + + @Test public void test() { assertNotNull(runtime); assertNotNull(runtime.getName());