File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/jdk/jdk/jfr/event/os Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 ();
You can’t perform that action at this time.
0 commit comments