1 #!/bin/ksh -p
2
3 #
4 # Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 #
7 # This code is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License version 2 only, as
9 # published by the Free Software Foundation.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 #
27 # @test JITDebug.sh 1.7 03/09/05
28 # @bug 4291701 4376819 4422312 4522770 4913748
29 # @summary Test JIT debugging - assure that launching on
30 # uncaught exception works
31 # @author Tim Bell
32 # Based on test/java/awt/TEMPLATE/AutomaticShellTest.sh
33 #
34 # @run build TestScaffold VMConnection TargetListener TargetAdapter
35 # @run compile -g JITDebug.java
36 # @run shell JITDebug.sh
37
38 # Beginning of subroutines:
39 status=1
40
41 #Call this from anywhere to fail the test with an error message
42 # usage: fail "reason why the test failed"
43 fail()
44 { echo "The test failed :-("
45 echo "$*" 1>&2
46 echo "exit status was $status"
47 exit $status
48 } #end of fail()
49
50 #Call this from anywhere to pass the test with a message
51 # usage: pass "reason why the test passed if applicable"
52 pass()
53 { echo "The test passed!!!"
|
1 #!/bin/ksh -p
2
3 #
4 # Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 #
7 # This code is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License version 2 only, as
9 # published by the Free Software Foundation.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 #
27 # @test JITDebug.sh 1.7 03/09/05
28 # @bug 4291701 4376819 4422312 4522770 4913748
29 # @summary Test JIT debugging - assure that launching on
30 # uncaught exception works
31 # @author Tim Bell
32 # Based on test/java/awt/TEMPLATE/AutomaticShellTest.sh
33 #
34 # @modules jdk.jdi
35 # @run build TestScaffold VMConnection TargetListener TargetAdapter
36 # @run compile -g JITDebug.java
37 # @run shell JITDebug.sh
38
39 # Beginning of subroutines:
40 status=1
41
42 #Call this from anywhere to fail the test with an error message
43 # usage: fail "reason why the test failed"
44 fail()
45 { echo "The test failed :-("
46 echo "$*" 1>&2
47 echo "exit status was $status"
48 exit $status
49 } #end of fail()
50
51 #Call this from anywhere to pass the test with a message
52 # usage: pass "reason why the test passed if applicable"
53 pass()
54 { echo "The test passed!!!"
|