# HG changeset patch # User jbachorik # Date 1389338520 -3600 # Node ID b4f108102ca9d689b7c8e249777f93418144f93b # Parent 8550495a4d78171d8a614636862895325d291fb4 8031420: sun/management/jmxremote/bootstrap/CustomLauncherTest.java fails on some platforms: Unable to locate 'libjvm.so' Reviewed-by: sla, chegar, sjiang diff -r 8550495a4d78 -r b4f108102ca9 jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java --- a/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java Thu Jan 09 14:15:01 2014 -0800 +++ b/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java Fri Jan 10 08:22:00 2014 +0100 @@ -91,6 +91,12 @@ return; } + if (getPlatform() == null) { + System.out.println("Test not designed to run on this operating " + + "system (" + OSNAME + "), skipping..."); + return; + } + final FileSystem FS = FileSystems.getDefault(); Path libjvmPath = findLibjvm(FS); @@ -223,8 +229,7 @@ break; } default: { - System.out.println("Test not designed to run on this operating " + - "system (" + OSNAME + "), skipping..."); + platform = null; } }