Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Ignore OPENJ9_JAVA_COMMAND_LINE environment variable #20

Merged
merged 1 commit into from
Feb 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/jdk/java/lang/ProcessBuilder/Basic.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2020, 2021 All Rights Reserved
* (c) Copyright IBM Corp. 2020, 2022 All Rights Reserved
* ===========================================================================
*/

Expand Down Expand Up @@ -298,7 +298,8 @@ private static String getenvAsString(Map<String,String> environment) {
environment = new TreeMap<>(environment);
for (Map.Entry<String,String> e : environment.entrySet())
// Ignore magic environment variables added by the launcher
if (! e.getKey().equals("LD_LIBRARY_PATH"))
if (! e.getKey().equals("LD_LIBRARY_PATH") &&
! e.getKey().equals("OPENJ9_JAVA_COMMAND_LINE"))
sb.append(e.getKey())
.append('=')
.append(e.getValue())
Expand Down