author | trims |
Thu, 27 May 2010 19:08:38 -0700 | |
changeset 5547 | f4b087cbb361 |
parent 3272 | 5a1e113bfed5 |
child 16457 | 92af83361777 |
permissions | -rw-r--r-- |
3272
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
1 |
#!/bin/sh |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
2 |
# |
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3272
diff
changeset
|
3 |
# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. |
3272
5a1e113bfed5
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. |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
5 |
# |
5a1e113bfed5
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 |
5a1e113bfed5
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 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
8 |
# published by the Free Software Foundation. |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
9 |
# |
5a1e113bfed5
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 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
11 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
5a1e113bfed5
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 |
5a1e113bfed5
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 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
14 |
# accompanied this code). |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
15 |
# |
5a1e113bfed5
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 |
5a1e113bfed5
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, |
5a1e113bfed5
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. |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
19 |
# |
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3272
diff
changeset
|
20 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3272
diff
changeset
|
21 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3272
diff
changeset
|
22 |
# questions. |
3272
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
23 |
# |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
24 |
# |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
25 |
|
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
26 |
if [ "${TESTSRC}" = "" ] |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
27 |
then |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
28 |
echo "TESTSRC not set. Test cannot execute. Failed." |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
29 |
exit 1 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
30 |
fi |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
31 |
echo "TESTSRC=${TESTSRC}" |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
32 |
if [ "${TESTJAVA}" = "" ] |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
33 |
then |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
34 |
echo "TESTJAVA not set. Test cannot execute. Failed." |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
35 |
exit 1 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
36 |
fi |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
37 |
echo "TESTJAVA=${TESTJAVA}" |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
38 |
if [ "${TESTCLASSES}" = "" ] |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
39 |
then |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
40 |
echo "TESTCLASSES not set. Test cannot execute. Failed." |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
41 |
exit 1 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
42 |
fi |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
43 |
echo "TESTCLASSES=${TESTCLASSES}" |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
44 |
echo "CLASSPATH=${CLASSPATH}" |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
45 |
|
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
46 |
set -x |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
47 |
|
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
48 |
cp ${TESTSRC}/Test6857159.java . |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
49 |
cp ${TESTSRC}/Test6857159.sh . |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
50 |
|
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
51 |
${TESTJAVA}/bin/javac -d . Test6857159.java |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
52 |
|
5a1e113bfed5
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 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
54 |
|
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
55 |
grep "COMPILE SKIPPED" test.out |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
56 |
|
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
57 |
result=$? |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
58 |
if [ $result -eq 1 ] |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
59 |
then |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
60 |
echo "Passed" |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
61 |
exit 0 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
62 |
else |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
63 |
echo "Failed" |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
64 |
exit 1 |
5a1e113bfed5
6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff
changeset
|
65 |
fi |