8167001: [TESTBUG] java/lang/instrument/DaemonThread/TestDaemonThread.java fails when run by jprt

Force classpath to be added to subprocesses

Reviewed-by: dholmes, sspitsyn
This commit is contained in:
Chris Plummer 2016-10-18 12:36:20 -07:00
parent 302ec8438f
commit 42c24a144c

View File

@ -29,7 +29,7 @@ import jdk.testlibrary.ProcessTools;
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);