Add sanity interruption assertion

This commit adds an assertion to the TestSecureSM#testNoModifySibling
test that sanity checks that the second child was actually interrupted
and therefore actually attempted to interrupt the first child.
This commit is contained in:
Jason Tedor 2015-10-29 17:37:43 -04:00
parent 46481c6799
commit 083f60e1da

View File

@ -127,7 +127,8 @@ public class TestSecureSM extends TestCase {
t2.start(); t2.start();
t2.interrupt(); t2.interrupt();
t2.join(); t2.join();
// sibling was not able to muck with its other sibling // sibling attempted to but was not able to muck with its other sibling
assertTrue(interrupted2.get());
assertFalse(interrupted1.get()); assertFalse(interrupted1.get());
// but we are the parent and can terminate // but we are the parent and can terminate
t1.interrupt(); t1.interrupt();