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 TestExitOnOutOfMemoryError |
25 * @test TestExitOnOutOfMemoryError |
26 * @summary Test using -XX:ExitOnOutOfMemoryError |
26 * @summary Test using -XX:ExitOnOutOfMemoryError |
27 * @modules java.base/jdk.internal.misc |
27 * @modules java.base/jdk.internal.misc |
28 * @library /testlibrary |
28 * @library /test/lib |
29 * @build jdk.test.lib.* |
|
30 * @run driver TestExitOnOutOfMemoryError |
29 * @run driver TestExitOnOutOfMemoryError |
31 * @bug 8138745 |
30 * @bug 8138745 |
32 */ |
31 */ |
33 |
32 |
34 import jdk.test.lib.ProcessTools; |
33 import jdk.test.lib.process.ProcessTools; |
35 import jdk.test.lib.OutputAnalyzer; |
34 import jdk.test.lib.process.OutputAnalyzer; |
36 |
35 |
37 public class TestExitOnOutOfMemoryError { |
36 public class TestExitOnOutOfMemoryError { |
38 |
37 |
39 public static void main(String[] args) throws Exception { |
38 public static void main(String[] args) throws Exception { |
40 if (args.length == 1) { |
39 if (args.length == 1) { |