Merge
authoramurillo
Fri, 08 Jul 2016 12:17:10 -0700
changeset 39737 4da8463b3d33
parent 39736 f939432eb32a (diff)
parent 39559 0bd60e219fd0 (current diff)
child 39738 15fea8b870eb
Merge
hotspot/test/compiler/c2/6857159/Test6857159.sh
hotspot/test/compiler/c2/6894807/Test6894807.sh
hotspot/test/compiler/c2/7070134/Test7070134.sh
hotspot/test/runtime/Unsafe/GetKlassPointerGetJavaMirror.java
jdk/make/mapfiles/libdcpr/mapfile-vers
jdk/make/mapfiles/libfontmanager/mapfile-vers.openjdk
jdk/make/mapfiles/libjdga/mapfile-vers
jdk/make/mapfiles/libjpeg/mapfile-vers-closed
jdk/make/mapfiles/libkcms/mapfile-vers
jdk/make/mapfiles/libt2k/mapfile-vers
jdk/src/java.desktop/share/classes/sun/dc/DuctusRenderingEngine.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/PluginOrderingGraph.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/OptimizationPlugin.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/asm/AsmGlobalPool.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/asm/AsmModulePool.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/asm/AsmPlugin.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/asm/AsmPool.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/asm/AsmPoolImpl.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/asm/AsmPools.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/optim/ControlFlow.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/optim/ForNameFolding.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/optim/ReflectionOptimizer.java
jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/optim/Utils.java
jdk/test/ProblemList.txt
jdk/test/sun/security/mscapi/SignUsingNONEwithRSA.sh
jdk/test/sun/security/tools/keytool/printssl.sh
jdk/test/tools/jlink/JLinkOptimTest.java
jdk/test/tools/jlink/asmplugin/AddForgetResourcesTest.java
jdk/test/tools/jlink/asmplugin/AsmPluginTestBase.java
jdk/test/tools/jlink/asmplugin/BasicTest.java
jdk/test/tools/jlink/asmplugin/IdentityPluginTest.java
jdk/test/tools/jlink/asmplugin/NegativeTest.java
jdk/test/tools/jlink/asmplugin/PackageMappingTest.java
jdk/test/tools/jlink/asmplugin/SortingTest.java
jdk/test/tools/jlink/asmplugin/VisitorTest.java
jdk/test/tools/jlink/plugins/PluginOrderTest.java
langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/DocEnv.java
langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/RootDocImpl.java
langtools/test/tools/javac/types/TypeHarness.java
--- a/jdk/test/sun/tools/jps/JpsBase.java	Fri Jul 08 10:41:12 2016 -0700
+++ b/jdk/test/sun/tools/jps/JpsBase.java	Fri Jul 08 12:17:10 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -59,7 +59,17 @@
         return JpsBase.class.getName();
     }
 
+    private static boolean userDirSanityCheck(String fullProcessName) {
+        String userDir = System.getProperty("user.dir");
+        if (!fullProcessName.startsWith(userDir)) {
+            System.err.printf("Test skipped. user.dir '%s' is not a prefix of '%s'\n", userDir, fullProcessName);
+            return false;
+        }
+        return true;
+    }
+
     public static void main(String[] args) throws Exception {
+        System.out.printf("INFO: user.dir:  '%s''\n", System.getProperty("user.dir"));
         long pid = ProcessTools.getProcessId();
 
         List<List<JpsHelper.JpsArg>> combinations = JpsHelper.JpsArg.generateCombinations();
@@ -85,8 +95,12 @@
                     // 30673 /tmp/jtreg/jtreg-workdir/scratch/JpsBase.jar ...
                     isFull = true;
                     String fullProcessName = getFullProcessName();
-                    pattern = "^" + pid + "\\s+" + replaceSpecialChars(fullProcessName) + ".*";
-                    output.shouldMatch(pattern);
+                    // Skip the test if user.dir is not a prefix of the current path
+                    // It's possible if the test is run from symlinked dir or windows alias drive
+                    if (userDirSanityCheck(fullProcessName)) {
+                        pattern = "^" + pid + "\\s+" + replaceSpecialChars(fullProcessName) + ".*";
+                        output.shouldMatch(pattern);
+                    }
                     break;
                 case m:
                     // If '-m' is specified output should contain the arguments passed to the main method:
--- a/jdk/test/sun/tools/jps/TestJpsJar.java	Fri Jul 08 10:41:12 2016 -0700
+++ b/jdk/test/sun/tools/jps/TestJpsJar.java	Fri Jul 08 12:17:10 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -52,6 +52,7 @@
         cmd.addAll(JpsHelper.getVmArgs());
         cmd.add("-Dtest.jdk=" + testJdk);
         cmd.add("-Dtest.src=" + testSrc);
+        cmd.add("-Duser.dir=" + System.getProperty("user.dir"));
         cmd.add("-jar");
         cmd.add(jar.getAbsolutePath());
         cmd.add("monkey");