Skip to content

Commit 7ab4eda

Browse files
committed
Don't fail on TestAttachAPI SecurityException for 24
Signed-off-by: Theresa Mammarella <[email protected]>
1 parent fb52334 commit 7ab4eda

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/functional/Java8andUp/src/org/openj9/test/attachAPI/TestAttachAPI.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,13 @@ public void test_attachperm04_05() {
11041104
try {
11051105
ap.checkGuard(this);
11061106
} catch (SecurityException unwantedException) {
1107-
fail("attachperm04: checkGuard: unexpected exception: "
1108-
+ unwantedException.getMessage());
1107+
String m = unwantedException.getMessage();
1108+
if (m.contains("checking permissions is not supported")) {
1109+
return;
1110+
} else {
1111+
fail("attachperm04: checkGuard: unexpected exception: "
1112+
+ unwantedException.getMessage());
1113+
}
11091114
}
11101115
String testString = ap.toString();
11111116
assertTrue(

0 commit comments

Comments
 (0)