Skip to content

Commit

Permalink
Don't fail on TestAttachAPI SecurityException for 24
Browse files Browse the repository at this point in the history
Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Nov 19, 2024
1 parent f0c108f commit 888855d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1104,8 +1104,13 @@ public void test_attachperm04_05() {
try {
ap.checkGuard(this);
} catch (SecurityException unwantedException) {
fail("attachperm04: checkGuard: unexpected exception: "
+ unwantedException.getMessage());
String m = unwantedException.getMessage();
if (m.contains("checking permissions is not supported")) {
return;
} else {
fail("attachperm04: checkGuard: unexpected exception: "
+ unwantedException.getMessage());
}
}
String testString = ap.toString();
assertTrue(
Expand Down

0 comments on commit 888855d

Please sign in to comment.