8031420: sun/management/jmxremote/bootstrap/CustomLauncherTest.java fails on some platforms: Unable to locate 'libjvm.so'
Reviewed-by: sla, chegar, sjiang
--- 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;
}
}