changeset 15907:569e17c52c7d

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
author cjplummer
date Tue, 18 Oct 2016 12:36:20 -0700
parents 234fa7498814
children 87579fa99c58
files test/java/lang/instrument/DaemonThread/TestDaemonThreadLauncher.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/instrument/DaemonThread/TestDaemonThreadLauncher.java	Mon Oct 17 15:46:28 2016 +0300
+++ b/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);