< prev index next >

test/runtime/XCheckJniJsig/XCheckJSig.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 7051189 8023393
  27  * @summary Need to suppress info message if -Xcheck:jni is used with libjsig.so
  28  * @library /testlibrary

  29  * @run main XCheckJSig
  30  */
  31 
  32 import java.io.File;
  33 import java.util.Map;
  34 import com.oracle.java.testlibrary.*;
  35 
  36 public class XCheckJSig {
  37     public static void main(String args[]) throws Throwable {
  38 
  39         System.out.println("Regression test for bugs 7051189 and 8023393");
  40         if (!Platform.isSolaris() && !Platform.isLinux() && !Platform.isOSX()) {
  41             System.out.println("Test only applicable on Solaris, Linux, and Mac OSX, skipping");
  42             return;
  43         }
  44 
  45         String jdk_path = System.getProperty("test.jdk");
  46         String os_arch = Platform.getOsArch();
  47         String libjsig;
  48         String env_var;




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 7051189 8023393
  27  * @summary Need to suppress info message if -Xcheck:jni is used with libjsig.so
  28  * @library /testlibrary
  29  * @build com.oracle.java.testlibrary.*
  30  * @run main XCheckJSig
  31  */
  32 
  33 import java.io.File;
  34 import java.util.Map;
  35 import com.oracle.java.testlibrary.*;
  36 
  37 public class XCheckJSig {
  38     public static void main(String args[]) throws Throwable {
  39 
  40         System.out.println("Regression test for bugs 7051189 and 8023393");
  41         if (!Platform.isSolaris() && !Platform.isLinux() && !Platform.isOSX()) {
  42             System.out.println("Test only applicable on Solaris, Linux, and Mac OSX, skipping");
  43             return;
  44         }
  45 
  46         String jdk_path = System.getProperty("test.jdk");
  47         String os_arch = Platform.getOsArch();
  48         String libjsig;
  49         String env_var;


< prev index next >