Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/utilities/NeverValidAssumptionTest.java @ 17439:e9c8742148c1
Truffle: NeverValidAssumption can be invalidated.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Tue, 14 Oct 2014 15:06:49 +0100 |
parents | d51c097cca37 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/utilities/NeverValidAssumptionTest.java Tue Oct 14 13:35:13 2014 +0200 +++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/utilities/NeverValidAssumptionTest.java Tue Oct 14 15:06:49 2014 +0100 @@ -50,10 +50,12 @@ assertFalse(assumption.isValid()); } - @Test(expected = UnsupportedOperationException.class) - public void testCannotInvalidate() { + @Test + public void testInvalidateDoesNothing() { final NeverValidAssumption assumption = NeverValidAssumption.INSTANCE; assumption.invalidate(); + assumption.invalidate(); + assumption.invalidate(); } }