Skip to content

Commit b63ec0a

Browse files
committed
8356945: jdk/jfr/event/os/TestProcessStart failed on Windows Subsystem for Linux
Reviewed-by: egahlin
1 parent a07150a commit b63ec0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/jdk/jdk/jfr/event/os/TestProcessStart.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -51,11 +51,12 @@ public static void main(String[] args) throws Throwable {
5151
recording.start();
5252
List<String> commandList = new ArrayList<>();
5353
if (Platform.isWindows()) {
54+
commandList.add("help");
5455
commandList.add("dir");
5556
} else {
5657
commandList.add("ls");
58+
commandList.add("*.jfr");
5759
}
58-
commandList.add("*.jfr");
5960
ProcessBuilder pb = new ProcessBuilder(commandList);
6061
pb.directory(new File(".").getAbsoluteFile());
6162
Process p = pb.start();

0 commit comments

Comments
 (0)