annotate test/compiler/6857159/Test6857159.sh @ 855:f9094a5e1c8a

6857159: local schedule failed with checkcast of Thread.currentThread() Reviewed-by: kvn
author never
date Tue, 21 Jul 2009 16:42:58 -0700
parents
children c18cbe5936b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
855
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
1 #!/bin/sh
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
2 #
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
3 # Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
5 #
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
6 # This code is free software; you can redistribute it and/or modify it
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
7 # under the terms of the GNU General Public License version 2 only, as
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
8 # published by the Free Software Foundation.
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
9 #
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
10 # This code is distributed in the hope that it will be useful, but WITHOUT
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
13 # version 2 for more details (a copy is included in the LICENSE file that
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
14 # accompanied this code).
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
15 #
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
16 # You should have received a copy of the GNU General Public License version
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
17 # 2 along with this work; if not, write to the Free Software Foundation,
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
19 #
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
20 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
21 # CA 95054 USA or visit www.sun.com if you need additional information or
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
22 # have any questions.
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
23 #
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
24 #
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
25
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
26 if [ "${TESTSRC}" = "" ]
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
27 then
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
28 echo "TESTSRC not set. Test cannot execute. Failed."
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
29 exit 1
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
30 fi
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
31 echo "TESTSRC=${TESTSRC}"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
32 if [ "${TESTJAVA}" = "" ]
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
33 then
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
34 echo "TESTJAVA not set. Test cannot execute. Failed."
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
35 exit 1
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
36 fi
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
37 echo "TESTJAVA=${TESTJAVA}"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
38 if [ "${TESTCLASSES}" = "" ]
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
39 then
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
40 echo "TESTCLASSES not set. Test cannot execute. Failed."
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
41 exit 1
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
42 fi
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
43 echo "TESTCLASSES=${TESTCLASSES}"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
44 echo "CLASSPATH=${CLASSPATH}"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
45
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
46 set -x
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
47
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
48 cp ${TESTSRC}/Test6857159.java .
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
49 cp ${TESTSRC}/Test6857159.sh .
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
50
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
51 ${TESTJAVA}/bin/javac -d . Test6857159.java
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
52
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
53 ${TESTJAVA}/bin/java ${TESTVMOPTS} -Xbatch -XX:+PrintCompilation -XX:CompileOnly=Test6857159\$ct.run Test6857159 > test.out 2>&1
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
54
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
55 grep "COMPILE SKIPPED" test.out
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
56
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
57 result=$?
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
58 if [ $result -eq 1 ]
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
59 then
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
60 echo "Passed"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
61 exit 0
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
62 else
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
63 echo "Failed"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
64 exit 1
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
65 fi