author | pchelko |
Tue, 19 Feb 2013 11:26:43 +0000 | |
changeset 15979 | ee8dc2c79603 |
parent 13523 | 6a7f3e56a242 |
child 16457 | 92af83361777 |
child 16428 | 1b55a8d558b8 |
permissions | -rw-r--r-- |
8481
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
1 |
#!/bin/sh |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
2 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
3 |
## |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
4 |
## @test |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
5 |
## @bug 6878713 |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
6 |
## @summary Verifier heap corruption, relating to backward jsrs |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
7 |
## @run shell/timeout=120 Test6878713.sh |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
8 |
## |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
9 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
10 |
if [ "${TESTSRC}" = "" ] |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
11 |
then TESTSRC=. |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
12 |
fi |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
13 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
14 |
if [ "${TESTJAVA}" = "" ] |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
15 |
then |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
16 |
PARENT=`dirname \`which java\`` |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
17 |
TESTJAVA=`dirname ${PARENT}` |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
18 |
echo "TESTJAVA not set, selecting " ${TESTJAVA} |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
19 |
echo "If this is incorrect, try setting the variable manually." |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
20 |
fi |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
21 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
22 |
if [ "${TESTCLASSES}" = "" ] |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
23 |
then |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
24 |
echo "TESTCLASSES not set. Test cannot execute. Failed." |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
25 |
exit 1 |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
26 |
fi |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
27 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
28 |
# set platform-dependent variables |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
29 |
OS=`uname -s` |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
30 |
case "$OS" in |
13469
9a2973794d8c
7129723: MAC: Some regression tests need to recognize Mac OS X platform
coleenp
parents:
12729
diff
changeset
|
31 |
SunOS | Linux | Darwin ) |
8481
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
32 |
NULL=/dev/null |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
33 |
PS=":" |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
34 |
FS="/" |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
35 |
;; |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
36 |
Windows_* ) |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
37 |
NULL=NUL |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
38 |
PS=";" |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
39 |
FS="\\" |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
40 |
;; |
13523
6a7f3e56a242
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
13469
diff
changeset
|
41 |
CYGWIN_* ) |
6a7f3e56a242
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
13469
diff
changeset
|
42 |
NULL=/dev/null |
6a7f3e56a242
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
13469
diff
changeset
|
43 |
PS=";" |
6a7f3e56a242
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
13469
diff
changeset
|
44 |
FS="/" |
6a7f3e56a242
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
13469
diff
changeset
|
45 |
;; |
8481
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
46 |
* ) |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
47 |
echo "Unrecognized system!" |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
48 |
exit 1; |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
49 |
;; |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
50 |
esac |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
51 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
52 |
JEMMYPATH=${CPAPPEND} |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
53 |
CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
54 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
55 |
THIS_DIR=`pwd` |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
56 |
|
12729
684b5857e506
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
8481
diff
changeset
|
57 |
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version |
8481
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
58 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
59 |
${TESTJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
60 |
|
12729
684b5857e506
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
8481
diff
changeset
|
61 |
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass1960_2 > test.out 2>&1 |
8481
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
62 |
|
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
63 |
if [ -s core -o -s "hs_*.log" ] |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
64 |
then |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
65 |
cat hs*.log |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
66 |
echo "Test Failed" |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
67 |
exit 1 |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
68 |
else |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
69 |
echo "Test Passed" |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
70 |
exit 0 |
42a79b703814
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
71 |
fi |