8167001: [TESTBUG] java/lang/instrument/DaemonThread/TestDaemonThread.java fails when run by jprt
Summary: force classpath to be added to subprocesses
Reviewed-by: dholmes, sspitsyn
--- a/jdk/test/java/lang/instrument/DaemonThread/TestDaemonThreadLauncher.java Mon Oct 17 15:46:28 2016 +0300
+++ b/jdk/test/java/lang/instrument/DaemonThread/TestDaemonThreadLauncher.java Tue Oct 18 12:36:20 2016 -0700
@@ -29,7 +29,7 @@
public class TestDaemonThreadLauncher {
public static void main(String args[]) throws Exception {
for(int i=0; i<50; i++) {
- ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-javaagent:DummyAgent.jar", "TestDaemonThread", ".");
+ ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(true, "-javaagent:DummyAgent.jar", "TestDaemonThread", ".");
OutputAnalyzer analyzer = ProcessTools.executeProcess(pb);
analyzer.shouldNotContain("ASSERTION FAILED");
analyzer.shouldHaveExitValue(0);