changeset 22076:f54d7e045a37

Verify the two TruffleVM instances are different - otherwise the isolation cannot work
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Thu, 13 Aug 2015 09:42:06 +0200
parents 60f3cb2c3a56
children 3880fac0dcb5 643d53cb3147
files truffle/com.oracle.truffle.tck/src/com/oracle/truffle/tck/TruffleTCK.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.tck/src/com/oracle/truffle/tck/TruffleTCK.java	Fri Aug 07 21:01:12 2015 +0200
+++ b/truffle/com.oracle.truffle.tck/src/com/oracle/truffle/tck/TruffleTCK.java	Thu Aug 13 09:42:06 2015 +0200
@@ -214,8 +214,12 @@
     public void testCoExistanceOfMultipleLanguageInstances() throws Exception {
         final String countMethod = countInvocations();
         TruffleVM.Symbol count1 = findGlobalSymbol(countMethod);
+        TruffleVM vm1 = tckVM;
         tckVM = null; // clean-up
         TruffleVM.Symbol count2 = findGlobalSymbol(countMethod);
+        TruffleVM vm2 = tckVM;
+
+        assertNotSame("Two virtual machines allocated", vm1, vm2);
 
         int prev1 = 0;
         int prev2 = 0;