< prev index next >

test/testlibrary/com/oracle/java/testlibrary/Platform.java

Print this page
rev 6999 : 8068013: [TESTBUG] Aix support in hotspot jtreg tests
Reviewed-by: ctornqvi, fzhinkin, farvidsson

*** 1,7 **** /* ! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 59,82 **** public static boolean is64bit() { return dataModel.equals("64"); } ! public static boolean isSolaris() { ! return isOs("sunos"); } ! public static boolean isWindows() { ! return isOs("win"); } public static boolean isOSX() { return isOs("mac"); } ! public static boolean isLinux() { ! return isOs("linux"); } private static boolean isOs(String osname) { return osName.toLowerCase().startsWith(osname.toLowerCase()); } --- 59,86 ---- public static boolean is64bit() { return dataModel.equals("64"); } ! public static boolean isAix() { ! return isOs("aix"); } ! public static boolean isLinux() { ! return isOs("linux"); } public static boolean isOSX() { return isOs("mac"); } ! public static boolean isSolaris() { ! return isOs("sunos"); ! } ! ! public static boolean isWindows() { ! return isOs("win"); } private static boolean isOs(String osname) { return osName.toLowerCase().startsWith(osname.toLowerCase()); }
*** 128,138 **** * Return a boolean for whether we expect to be able to attach * the SA to our own processes on this system. */ public static boolean shouldSAAttach() throws Exception { ! if (isLinux()) { return canPtraceAttachLinux(); } else if (isOSX()) { return canAttachOSX(); } else { // Other platforms expected to work: --- 132,144 ---- * Return a boolean for whether we expect to be able to attach * the SA to our own processes on this system. */ public static boolean shouldSAAttach() throws Exception { ! if (isAix()) { ! return false; // SA not implemented. ! } else if (isLinux()) { return canPtraceAttachLinux(); } else if (isOSX()) { return canAttachOSX(); } else { // Other platforms expected to work:
< prev index next >