#15318 Backport of #9508 Modified the test testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java to support MIPS.

Fri, 23 Oct 2020 10:21:20 +0800

author
panxuefeng
date
Fri, 23 Oct 2020 10:21:20 +0800
changeset 10020
a9ac0a2b370f
parent 10019
1496a146b31b
child 10025
d3b4d62f391f

#15318 Backport of #9508 Modified the test testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java to support MIPS.
Reviewed-by: aoqi

test/testlibrary/com/oracle/java/testlibrary/Platform.java file | annotate | diff | comparison | revisions
test/testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java file | annotate | diff | comparison | revisions
     1.1 --- a/test/testlibrary/com/oracle/java/testlibrary/Platform.java	Fri Oct 16 17:11:33 2020 +0800
     1.2 +++ b/test/testlibrary/com/oracle/java/testlibrary/Platform.java	Fri Oct 23 10:21:20 2020 +0800
     1.3 @@ -136,6 +136,10 @@
     1.4          return osArch;
     1.5      }
     1.6  
     1.7 +    public static boolean isMIPS() {
     1.8 +        return isArch("mips.*");
     1.9 +    }
    1.10 +
    1.11      /**
    1.12       * Return a boolean for whether we expect to be able to attach
    1.13       * the SA to our own processes on this system.
     2.1 --- a/test/testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java	Fri Oct 16 17:11:33 2020 +0800
     2.2 +++ b/test/testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java	Fri Oct 23 10:21:20 2020 +0800
     2.3 @@ -43,7 +43,7 @@
     2.4   */
     2.5  public class TestMutuallyExclusivePlatformPredicates {
     2.6      private static enum MethodGroup {
     2.7 -        ARCH("isARM", "isPPC", "isSparc", "isX86", "isX64", "isAArch64"),
     2.8 +        ARCH("isARM", "isPPC", "isSparc", "isX86", "isX64", "isAArch64", "isMIPS"),
     2.9          BITNESS("is32bit", "is64bit"),
    2.10          OS("isAix", "isLinux", "isSolaris", "isWindows", "isOSX"),
    2.11          VM_TYPE("isClient", "isServer", "isGraal", "isMinimal"),

mercurial