14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24
25 /*
26 * @test
27 * @bug 8191101
28 * @summary Show Registers on assert/guarantee
29 * @library /test/lib
30 * @requires (vm.debug == true) & (os.family == "linux")
31 * @author Thomas Stuefe (SAP)
32 * @modules java.base/jdk.internal.misc
33 * java.management
34 */
35
36 // Note: this test can only run on debug since it relies on VMError::controlled_crash() which
37 // only exists in debug builds.
38 import java.io.BufferedReader;
39 import java.io.File;
40 import java.io.FileInputStream;
41 import java.io.InputStreamReader;
42 import java.util.regex.Pattern;
43
44 import jdk.test.lib.process.OutputAnalyzer;
45 import jdk.test.lib.Platform;
46 import jdk.test.lib.process.ProcessTools;
47
48 public class ShowRegistersOnAssertTest {
49
50 private static void do_test(boolean do_assert, // true - assert, false - guarantee
51 boolean suppress_assert,
52 boolean show_registers_on_assert) throws Exception
53 {
|
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24
25 /*
26 * @test
27 * @bug 8191101
28 * @summary Show Registers on assert/guarantee
29 * @library /test/lib
30 * @requires (vm.debug == true) & (os.family == "linux")
31 * @author Thomas Stuefe (SAP)
32 * @modules java.base/jdk.internal.misc
33 * java.management
34 * @run driver ShowRegistersOnAssertTest
35 */
36
37 // Note: this test can only run on debug since it relies on VMError::controlled_crash() which
38 // only exists in debug builds.
39 import java.io.BufferedReader;
40 import java.io.File;
41 import java.io.FileInputStream;
42 import java.io.InputStreamReader;
43 import java.util.regex.Pattern;
44
45 import jdk.test.lib.process.OutputAnalyzer;
46 import jdk.test.lib.Platform;
47 import jdk.test.lib.process.ProcessTools;
48
49 public class ShowRegistersOnAssertTest {
50
51 private static void do_test(boolean do_assert, // true - assert, false - guarantee
52 boolean suppress_assert,
53 boolean show_registers_on_assert) throws Exception
54 {
|