annotate test/compiler/6857159/Test6857159.sh @ 17524:89152779163c

Merge with jdk8-b132
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 11:59:32 +0200
parents 4ca6dc0799b6
children
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 #
17524
89152779163c Merge with jdk8-b132
Gilles Duboscq <duboscq@ssw.jku.at>
parents: 14909
diff changeset
3 # Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
855
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 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 855
diff changeset
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 855
diff changeset
21 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 855
diff changeset
22 # questions.
855
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 #
8831
04d6d4322c6a 8009152: A number of jtreg tests need review/improvement
collins
parents: 1552
diff changeset
25 ## some tests require path to find test source dir
855
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
8831
04d6d4322c6a 8009152: A number of jtreg tests need review/improvement
collins
parents: 1552
diff changeset
28 TESTSRC=${PWD}
04d6d4322c6a 8009152: A number of jtreg tests need review/improvement
collins
parents: 1552
diff changeset
29 echo "TESTSRC not set. Using "${TESTSRC}" as default"
855
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}"
8831
04d6d4322c6a 8009152: A number of jtreg tests need review/improvement
collins
parents: 1552
diff changeset
32 ## Adding common setup Variables for running shell tests.
04d6d4322c6a 8009152: A number of jtreg tests need review/improvement
collins
parents: 1552
diff changeset
33 . ${TESTSRC}/../../test_env.sh
855
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
34
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
35 set -x
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
36
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
37 cp ${TESTSRC}/Test6857159.java .
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
38 cp ${TESTSRC}/Test6857159.sh .
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
39
8831
04d6d4322c6a 8009152: A number of jtreg tests need review/improvement
collins
parents: 1552
diff changeset
40 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6857159.java
855
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
41
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
42 ${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
43
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
44 grep "COMPILE SKIPPED" test.out
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 result=$?
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
47 if [ $result -eq 1 ]
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
48 then
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
49 echo "Passed"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
50 exit 0
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
51 else
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
52 echo "Failed"
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
53 exit 1
f9094a5e1c8a 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
54 fi