equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
29 import java.util.ArrayList; |
29 import java.util.ArrayList; |
30 import java.util.List; |
30 import java.util.List; |
31 |
31 |
32 import jdk.jfr.internal.Options; |
32 import jdk.jfr.internal.Options; |
33 import jdk.test.lib.Asserts; |
33 import jdk.test.lib.Asserts; |
|
34 import jdk.test.lib.Utils; |
34 |
35 |
35 /** |
36 /** |
36 * @test |
37 * @test |
37 * @summary The test verifies JFR.configure command |
38 * @summary The test verifies JFR.configure command |
38 * @key jfr |
39 * @key jfr |
60 // - set values when JFR is running, check for errors. |
61 // - set values when JFR is running, check for errors. |
61 // - validate against output from JFR.configure |
62 // - validate against output from JFR.configure |
62 // - where feasible, check if they are respected |
63 // - where feasible, check if they are respected |
63 // |
64 // |
64 |
65 |
65 String dumpPath = Files.createTempDirectory("dump-path").toAbsolutePath().toString(); |
66 String dumpPath = Utils.createTempDirectory("dump-path-").toAbsolutePath().toString(); |
66 |
67 |
67 test(DUMPPATH, dumpPath); |
68 test(DUMPPATH, dumpPath); |
68 test(STACK_DEPTH, 15); |
69 test(STACK_DEPTH, 15); |
69 test(GLOBAL_BUFFER_COUNT, 7); |
70 test(GLOBAL_BUFFER_COUNT, 7); |
70 test(GLOBAL_BUFFER_SIZE, 6); |
71 test(GLOBAL_BUFFER_SIZE, 6); |