Mercurial > hg > truffle
annotate test/compiler/5091921/Test7005594.sh @ 3719:5140bf905747
Removed mx/env from revision control.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 16 Dec 2011 13:37:14 +0100 |
parents | 231c2b41ea4d |
children | ff9ab6327924 |
rev | line source |
---|---|
3386
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
1 #!/bin/sh |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
2 # |
231c2b41ea4d
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. |
231c2b41ea4d
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. |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
5 # |
231c2b41ea4d
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 |
231c2b41ea4d
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 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
8 # published by the Free Software Foundation. |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
9 # |
231c2b41ea4d
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 |
231c2b41ea4d
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 |
231c2b41ea4d
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 |
231c2b41ea4d
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 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
14 # accompanied this code). |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
15 # |
231c2b41ea4d
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 |
231c2b41ea4d
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, |
231c2b41ea4d
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. |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
19 # |
231c2b41ea4d
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 |
231c2b41ea4d
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 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
22 # questions. |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
23 # |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
24 # |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
25 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
26 if [ "${TESTSRC}" = "" ] |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
27 then |
231c2b41ea4d
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." |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
29 exit 1 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
30 fi |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
31 echo "TESTSRC=${TESTSRC}" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
32 if [ "${TESTJAVA}" = "" ] |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
33 then |
231c2b41ea4d
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." |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
35 exit 1 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
36 fi |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
37 echo "TESTJAVA=${TESTJAVA}" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
38 if [ "${TESTCLASSES}" = "" ] |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
39 then |
231c2b41ea4d
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." |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
41 exit 1 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
42 fi |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
43 echo "TESTCLASSES=${TESTCLASSES}" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
44 echo "CLASSPATH=${CLASSPATH}" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
45 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
46 set -x |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
47 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
48 cp ${TESTSRC}/Test7005594.java . |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
49 cp ${TESTSRC}/Test7005594.sh . |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
50 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
51 ${TESTJAVA}/bin/javac -d . Test7005594.java |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
52 |
231c2b41ea4d
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 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
54 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
55 result=$? |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
56 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
57 cat test.out |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
58 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
59 if [ $result -eq 95 ] |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
60 then |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
61 echo "Passed" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
62 exit 0 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
63 fi |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
64 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
65 if [ $result -eq 97 ] |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
66 then |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
67 echo "Failed" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
68 exit 1 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
69 fi |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
70 |
231c2b41ea4d
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 |
231c2b41ea4d
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 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
73 if [ $? = 0 ] |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
74 then |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
75 echo "Passed" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
76 exit 0 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
77 else |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
78 echo "Failed" |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
79 exit 1 |
231c2b41ea4d
7045570: compiler/5091921/Test7005594.java failed because not enough space for object heap
kvn
parents:
diff
changeset
|
80 fi |