mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-28 03:00:41 +00:00
8135094: (process) java/lang/ProcessHandle/InfoTest fails testing commandLine()
Reviewed-by: chegar, simonis
This commit is contained in:
parent
6a3d511525
commit
aeb4acfb60
@ -203,8 +203,10 @@ public class InfoTest {
|
||||
"commandLine() should start with: " + expectedPath +
|
||||
" but starts with " + commandLineCmdPath);
|
||||
|
||||
Assert.assertTrue(commandLine.contains(command.get()),
|
||||
"commandLine() must contain the command: " + command.get());
|
||||
List<String> allArgs = p1.getArgs();
|
||||
for (int i = 0; i < allArgs.size(); i++) {
|
||||
for (int i = 1; i < allArgs.size(); i++) {
|
||||
Assert.assertTrue(commandLine.contains(allArgs.get(i)),
|
||||
"commandLine() must contain argument: " + allArgs.get(i));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user