< prev index next >

test/jdk/jdk/net/Sockets/Test.java

Print this page
rev 59105 : imported patch corelibs

*** 187,210 **** "UnsupportedOperationException was not thrown"); } } private static boolean checkExpectedOptionSupport() { ! if (Platform.isSolaris()) { ! OSVersion solarisVersion = OSVersion.current(); ! OSVersion solarisVersionToCheck = new OSVersion(11, 2); ! if (solarisVersion.compareTo(solarisVersionToCheck) >= 0) { ! System.out.println("This Solaris version (" + solarisVersion ! + ") should support SO_FLOW_SLA option"); ! return true; ! } else { ! System.out.println("This Solaris version (" + solarisVersion ! + ") should not support SO_FLOW_SLA option"); ! } ! } else { ! System.out.println("Not Solaris, SO_FLOW_SLA should not be " + ! "supported"); ! } return false; } } --- 187,196 ---- "UnsupportedOperationException was not thrown"); } } private static boolean checkExpectedOptionSupport() { ! System.out.println("SO_FLOW_SLA should not be supported"); return false; } }
< prev index next >