Tue, 23 Jun 2015 22:14:58 -0400
8080600: AARCH64: testlibrary does not support AArch64
Summary: Partial backport of 8080600 to make AArch64 a known platform
Reviewed-by: dholmes, coleenp
1.1 --- a/test/testlibrary/com/oracle/java/testlibrary/Platform.java Thu Jun 18 23:42:09 2015 -0700 1.2 +++ b/test/testlibrary/com/oracle/java/testlibrary/Platform.java Tue Jun 23 22:14:58 2015 -0400 1.3 @@ -122,6 +122,10 @@ 1.4 return isArch("(amd64)|(x86_64)"); 1.5 } 1.6 1.7 + public static boolean isAArch64() { 1.8 + return isArch("aarch64"); 1.9 + } 1.10 + 1.11 private static boolean isArch(String archnameRE) { 1.12 return Pattern.compile(archnameRE, Pattern.CASE_INSENSITIVE) 1.13 .matcher(osArch)
2.1 --- a/test/testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java Thu Jun 18 23:42:09 2015 -0700 2.2 +++ b/test/testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java Tue Jun 23 22:14:58 2015 -0400 2.3 @@ -1,5 +1,5 @@ 2.4 /* 2.5 - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. 2.6 + * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. 2.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2.8 * 2.9 * This code is free software; you can redistribute it and/or modify it 2.10 @@ -43,7 +43,7 @@ 2.11 */ 2.12 public class TestMutuallyExclusivePlatformPredicates { 2.13 private static enum MethodGroup { 2.14 - ARCH("isARM", "isPPC", "isSparc", "isX86", "isX64"), 2.15 + ARCH("isARM", "isPPC", "isSparc", "isX86", "isX64", "isAArch64"), 2.16 BITNESS("is32bit", "is64bit"), 2.17 OS("isAix", "isLinux", "isSolaris", "isWindows", "isOSX"), 2.18 VM_TYPE("isClient", "isServer", "isGraal", "isMinimal"),