From 9ca506bd0da5f7467d7f8f5265eb393d9be57e23 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Mon, 19 Dec 2016 13:50:29 -0800 Subject: [PATCH] 8171468: sun/management/jmxremote/bootstrap/CustomLauncherTest.java fails as lib/$ARCH no longer exists Reviewed-by: alanb, redestad --- .../jmxremote/bootstrap/CustomLauncherTest.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java b/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java index 482e93e9128..0a27bf70482 100644 --- a/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java +++ b/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java @@ -56,8 +56,6 @@ public class CustomLauncherTest { private static final String TEST_SRC = System.getProperty("test.src"); private static final String OSNAME = System.getProperty("os.name"); private static final String ARCH; - private static final String LIBARCH; - static { // magic with os.arch String osarch = System.getProperty("os.arch"); @@ -84,7 +82,6 @@ public class CustomLauncherTest { ARCH = osarch; } } - LIBARCH = ARCH.equals("i586") ? "i386" : ARCH; } public static void main(String[] args) throws Exception { @@ -184,15 +181,12 @@ public class CustomLauncherTest { } private static Path findLibjvm(FileSystem FS) { - Path libjvmPath = findLibjvm(FS.getPath(TEST_JDK, "jre", "lib", LIBARCH)); - if (libjvmPath == null) { - libjvmPath = findLibjvm(FS.getPath(TEST_JDK, "lib", LIBARCH)); - } + Path libjvmPath = findLibjvm(FS.getPath(TEST_JDK, "lib")); return libjvmPath; } private static Path findLibjvm(Path libPath) { - // ARCH/libjvm.so -> ARCH/server/libjvm.so -> ARCH/client/libjvm.so + // libjvm.so -> server/libjvm.so -> client/libjvm.so Path libjvmPath = libPath.resolve("libjvm.so"); if (isFileOk(libjvmPath)) { return libjvmPath;