author | kvn |
Tue, 17 May 2011 12:26:33 -0700 | |
changeset 9944 | cd527b70bfe4 |
child 10285 | 21965ee594b9 |
permissions | -rw-r--r-- |
9944
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
1 |
#!/bin/sh |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
2 |
# |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
3 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
4 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
5 |
# |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
6 |
# This code is free software; you can redistribute it and/or modify it |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
7 |
# under the terms of the GNU General Public License version 2 only, as |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
8 |
# published by the Free Software Foundation. |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
9 |
# |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
10 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
11 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
12 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
13 |
# version 2 for more details (a copy is included in the LICENSE file that |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
14 |
# accompanied this code). |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
15 |
# |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
16 |
# You should have received a copy of the GNU General Public License version |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
17 |
# 2 along with this work; if not, write to the Free Software Foundation, |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
18 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
19 |
# |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
20 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
21 |
# or visit www.oracle.com if you need additional information or have any |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
22 |
# questions. |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
23 |
# |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
24 |
# |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
25 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
26 |
if [ "${TESTSRC}" = "" ] |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
27 |
then |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
28 |
echo "TESTSRC not set. Test cannot execute. Failed." |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
29 |
exit 1 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
30 |
fi |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
31 |
echo "TESTSRC=${TESTSRC}" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
32 |
if [ "${TESTJAVA}" = "" ] |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
33 |
then |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
34 |
echo "TESTJAVA not set. Test cannot execute. Failed." |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
35 |
exit 1 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
36 |
fi |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
37 |
echo "TESTJAVA=${TESTJAVA}" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
38 |
if [ "${TESTCLASSES}" = "" ] |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
39 |
then |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
40 |
echo "TESTCLASSES not set. Test cannot execute. Failed." |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
41 |
exit 1 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
42 |
fi |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
43 |
echo "TESTCLASSES=${TESTCLASSES}" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
44 |
echo "CLASSPATH=${CLASSPATH}" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
45 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
46 |
set -x |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
47 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
48 |
cp ${TESTSRC}/Test7005594.java . |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
49 |
cp ${TESTSRC}/Test7005594.sh . |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
50 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
51 |
${TESTJAVA}/bin/javac -d . Test7005594.java |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
52 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
53 |
${TESTJAVA}/bin/java ${TESTVMOPTS} -Xms1600m -Xcomp -XX:CompileOnly=Test7005594.test Test7005594 > test.out 2>&1 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
54 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
55 |
result=$? |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
56 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
57 |
cat test.out |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
58 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
59 |
if [ $result -eq 95 ] |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
60 |
then |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
61 |
echo "Passed" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
62 |
exit 0 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
63 |
fi |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
64 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
65 |
if [ $result -eq 97 ] |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
66 |
then |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
67 |
echo "Failed" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
68 |
exit 1 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
69 |
fi |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
70 |
|
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
71 |
# The test should pass when no enough space for object heap |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
72 |
grep "Could not reserve enough space for object heap" test.out |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
73 |
if [ $? = 0 ] |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
74 |
then |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
75 |
echo "Passed" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
76 |
exit 0 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
77 |
else |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
78 |
echo "Failed" |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
79 |
exit 1 |
cd527b70bfe4
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
80 |
fi |