Skip to content

Commit 781a2e0

Browse files
committed
8298343: "Could not confirm if TargetJDK is hardened." warning for SA tests on macosx-aarch64-debug
Reviewed-by: amenkov, kevinw
1 parent 9ff85f6 commit 781a2e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/lib/jdk/test/lib/Platform.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ public static boolean isHardenedOSX() throws IOException {
293293
isHardened = true;
294294
System.out.println("Target JDK is hardened. Some tests may be skipped.");
295295
} else if (line.indexOf("flags=0x20002(adhoc,linker-signed)") != -1 ) {
296+
hardenedStatusConfirmed = true;
297+
isHardened = false;
298+
System.out.println("Target JDK is adhoc linker-signed, but not hardened.");
299+
} else if (line.indexOf("flags=0x2(adhoc)") != -1 ) {
296300
hardenedStatusConfirmed = true;
297301
isHardened = false;
298302
System.out.println("Target JDK is adhoc signed, but not hardened.");

0 commit comments

Comments
 (0)