8222747: [Graal] mx_subprocess files miss testing VM flags
Reviewed-by: kvn
This commit is contained in:
parent
288a115a81
commit
a8550e4589
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2019, 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
|
||||
@ -270,8 +270,7 @@ public class GraalUnitTestLauncher {
|
||||
// Some tests rely on MX_SUBPROCESS_COMMAND_FILE env variable which contains
|
||||
// name of the file with java executable and java args used to launch the current process.
|
||||
Path cmdFile = Files.createTempFile(Path.of(""), "mx_subprocess_", ".cmd");
|
||||
Files.writeString(cmdFile, JDKToolFinder.getJDKTool("java") + System.lineSeparator());
|
||||
Files.write(cmdFile, javaFlags, StandardOpenOption.APPEND);
|
||||
Files.write(cmdFile, javaPB.command());
|
||||
javaPB.environment().put("MX_SUBPROCESS_COMMAND_FILE", cmdFile.toAbsolutePath().toString());
|
||||
|
||||
System.out.println("INFO: run command: " + String.join(" ", javaPB.command()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user