Navigation Menu

Skip to content

Commit

Permalink
8282219: jdk/java/lang/ProcessBuilder/Basic.java fails on AIX
Browse files Browse the repository at this point in the history
Backport-of: c5c6058fd57d4b594012035eaf18a57257f4ad85
  • Loading branch information
Ichiroh Takiguchi committed Mar 1, 2022
1 parent c2a62d7 commit 6ce19ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/jdk/java/lang/ProcessBuilder/Basic.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2022, 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
Expand Down Expand Up @@ -27,7 +27,7 @@
* 5026830 5023243 5070673 4052517 4811767 6192449 6397034 6413313
* 6464154 6523983 6206031 4960438 6631352 6631966 6850957 6850958
* 4947220 7018606 7034570 4244896 5049299 8003488 8054494 8058464
* 8067796 8224905 8263729 8265173 8272600 8231297
* 8067796 8224905 8263729 8265173 8272600 8231297 8282219
* @key intermittent
* @summary Basic tests for Process and Environment Variable code
* @modules java.base/java.lang:open
Expand Down Expand Up @@ -1870,6 +1870,8 @@ public void doIt(Map<String,String> environ) {
String[] envpOth = {"=ExitValue=3", "=C:=\\"};
if (Windows.is()) {
envp = envpWin;
} else if (AIX.is()) {
envp = new String[] {"=ExitValue=3", "=C:=\\", "LIBPATH=" + libpath};
} else {
envp = envpOth;
}
Expand Down Expand Up @@ -1918,6 +1920,9 @@ public void doIt(Map<String,String> environ) {
String[] envp;
if (Windows.is()) {
envp = envpWin;
} else if (AIX.is()) {
envp = new String[] {"LC_ALL=C\u0000\u0000", // Yuck!
"FO\u0000=B\u0000R", "LIBPATH=" + libpath};
} else {
envp = envpOth;
}
Expand Down

1 comment on commit 6ce19ed

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.