hotspot/test/compiler/6857159/Test6857159.sh
author jbachorik
Tue, 28 May 2013 15:57:45 +0200
changeset 17720 2337b09003f5
parent 16457 92af83361777
child 22234 da823d78ad65
permissions -rw-r--r--
8005472: com/sun/jmx/remote/NotificationMarshalVersions/TestSerializationMismatch.sh failed on windows Reviewed-by: chegar, smarks, dfuchs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
# 
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents: 5547
diff changeset
    25
## some tests require path to find test source dir
3272
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
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents: 5547
diff changeset
    28
  TESTSRC=${PWD}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents: 5547
diff changeset
    29
  echo "TESTSRC not set.  Using "${TESTSRC}" as default"
3272
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}"
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents: 5547
diff changeset
    32
## Adding common setup Variables for running shell tests.
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents: 5547
diff changeset
    33
. ${TESTSRC}/../../test_env.sh
3272
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    34
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    35
set -x
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    36
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    37
cp ${TESTSRC}/Test6857159.java .
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    38
cp ${TESTSRC}/Test6857159.sh .
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    39
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents: 5547
diff changeset
    40
${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6857159.java
3272
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    41
5a1e113bfed5 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
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    43
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    44
grep "COMPILE SKIPPED" test.out
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
result=$?
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    47
if [ $result -eq 1 ]
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    48
then
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    49
  echo "Passed"
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    50
  exit 0
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    51
else
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    52
  echo "Failed"
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    53
  exit 1
5a1e113bfed5 6857159: local schedule failed with checkcast of Thread.currentThread()
never
parents:
diff changeset
    54
fi