jdk/test/sun/nio/ch/SelProvider.java
changeset 12538 211d6e82fe51
parent 12438 c1183d4a80d4
child 12872 16fa902b1469
equal deleted inserted replaced
12438:c1183d4a80d4 12538:211d6e82fe51
     1 /*
     1 /*
     2  * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2012 Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    37         String expected = null;
    37         String expected = null;
    38         if ("SunOS".equals(osname)) {
    38         if ("SunOS".equals(osname)) {
    39             expected = "sun.nio.ch.DevPollSelectorProvider";
    39             expected = "sun.nio.ch.DevPollSelectorProvider";
    40         } else if ("Linux".equals(osname)) {
    40         } else if ("Linux".equals(osname)) {
    41             expected = "sun.nio.ch.EPollSelectorProvider";
    41             expected = "sun.nio.ch.EPollSelectorProvider";
    42         } else if (osname.startsWith("Mac OS")) {
    42         } else if (osname.contains("OS X")) {
    43             expected = "sun.nio.ch.KQueueSelectorProvider";
    43             expected = "sun.nio.ch.KQueueSelectorProvider";
    44         } else
    44         } else
    45             return;
    45             return;
    46         if (!spName.equals(expected))
    46         if (!spName.equals(expected))
    47             throw new Exception("failed");
    47             throw new Exception("failed");