Skip to content

Commit

Permalink
8298343: "Could not confirm if TargetJDK is hardened." warning for SA…
Browse files Browse the repository at this point in the history
… tests on macosx-aarch64-debug

Reviewed-by: amenkov, kevinw
  • Loading branch information
plummercj committed Dec 12, 2022
1 parent 9ff85f6 commit 781a2e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/lib/jdk/test/lib/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ public static boolean isHardenedOSX() throws IOException {
isHardened = true;
System.out.println("Target JDK is hardened. Some tests may be skipped.");
} else if (line.indexOf("flags=0x20002(adhoc,linker-signed)") != -1 ) {
hardenedStatusConfirmed = true;
isHardened = false;
System.out.println("Target JDK is adhoc linker-signed, but not hardened.");
} else if (line.indexOf("flags=0x2(adhoc)") != -1 ) {
hardenedStatusConfirmed = true;
isHardened = false;
System.out.println("Target JDK is adhoc signed, but not hardened.");
Expand Down

1 comment on commit 781a2e0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.