# HG changeset patch # User Doug Simon # Date 1364295730 -3600 # Node ID bceb163c011636dec45fabf8279351b34f3bf38c # Parent f71fec3fadae94951488a555707faca9b202c0fe test that method substitutions for Thread are interpretable diff -r f71fec3fadae -r bceb163c0116 graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/HotSpotMethodSubstitutionTest.java --- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/HotSpotMethodSubstitutionTest.java Tue Mar 26 12:01:42 2013 +0100 +++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/HotSpotMethodSubstitutionTest.java Tue Mar 26 12:02:10 2013 +0100 @@ -25,6 +25,7 @@ import org.junit.*; import com.oracle.graal.api.replacements.*; +import com.oracle.graal.hotspot.replacements.*; import com.oracle.graal.replacements.*; /** @@ -99,6 +100,10 @@ test("currentThread"); test("threadIsInterrupted"); test("threadInterrupted"); + + Thread currentThread = Thread.currentThread(); + assertEquals(currentThread, ThreadSubstitutions.currentThread()); + assertEquals(currentThread.isInterrupted(), ThreadSubstitutions.isInterrupted(currentThread, false)); } @SuppressWarnings("all")