Skip to content

Commit

Permalink
Fix SelfSuspendDisablerTest
Browse files Browse the repository at this point in the history
See eclipse-openj9/openj9#16276.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
  • Loading branch information
babsingh committed Nov 10, 2022
1 parent 110e1e7 commit 69f28b2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2021, 2022 All Rights Reserved
* ===========================================================================
*/

/*
* @test
* @summary Test verifies that selfsuspend doesn' block unmount by VTMTDisabler
Expand Down Expand Up @@ -63,7 +69,7 @@ private static void testJvmtiThreadState(Thread thread, int expectedState) {

System.out.printf("Expected %s thread state: %06X got: %06X\n",
kindStr, expectedState, state);
if (state != expectedState) {
if ((state & expectedState) != expectedState) {
throw new RuntimeException("Test FAILED: Unexpected thread state");
}
}
Expand Down

0 comments on commit 69f28b2

Please sign in to comment.