equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2016, 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. |
7 * published by the Free Software Foundation. |
23 |
23 |
24 /* |
24 /* |
25 * @test TestOnError |
25 * @test TestOnError |
26 * @summary Test using -XX:OnError=<cmd> |
26 * @summary Test using -XX:OnError=<cmd> |
27 * @modules java.base/jdk.internal.misc |
27 * @modules java.base/jdk.internal.misc |
28 * @library /testlibrary |
28 * @library /test/lib |
29 * @build TestOnError |
|
30 * @run main TestOnError |
29 * @run main TestOnError |
31 * @bug 8078470 |
30 * @bug 8078470 |
32 */ |
31 */ |
33 |
32 |
34 import jdk.test.lib.*; |
33 import jdk.test.lib.process.ProcessTools; |
|
34 import jdk.test.lib.process.OutputAnalyzer; |
|
35 import jdk.test.lib.Platform; |
35 |
36 |
36 public class TestOnError { |
37 public class TestOnError { |
37 |
38 |
38 public static void main(String[] args) throws Exception { |
39 public static void main(String[] args) throws Exception { |
39 if (!Platform.isDebugBuild()) { |
40 if (!Platform.isDebugBuild()) { |