Mercurial > hg > graal-compiler
annotate test/runtime/6878713/Test6878713.sh @ 10236:a258a8351528
Merge
author | vladidan |
---|---|
date | Tue, 07 May 2013 10:36:20 -0400 |
parents | d1897e7e0488 |
children |
rev | line source |
---|---|
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
1 #!/bin/sh |
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
2 |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
3 # |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
4 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
6 # |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
7 # This code is free software; you can redistribute it and/or modify it |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
8 # under the terms of the GNU General Public License version 2 only, as |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
9 # published by the Free Software Foundation. |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
10 # |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
11 # This code is distributed in the hope that it will be useful, but WITHOUT |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
14 # version 2 for more details (a copy is included in the LICENSE file that |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
15 # accompanied this code). |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
16 # |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
17 # You should have received a copy of the GNU General Public License version |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
18 # 2 along with this work; if not, write to the Free Software Foundation, |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
20 # |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
22 # or visit www.oracle.com if you need additional information or have any |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
23 # questions. |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
24 # |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
25 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
26 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
27 |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
28 ## |
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
29 ## @test |
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
30 ## @bug 6878713 |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
31 ## @bug 7030610 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
32 ## @bug 7037122 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
33 ## @bug 7123945 |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
34 ## @summary Verifier heap corruption, relating to backward jsrs |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
35 ## @run shell Test6878713.sh |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
36 ## |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
37 ## some tests require path to find test source dir |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
38 if [ "${TESTSRC}" = "" ] |
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
39 then |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
40 TESTSRC=${PWD} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
41 echo "TESTSRC not set. Using "${TESTSRC}" as default" |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
42 fi |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
43 echo "TESTSRC=${TESTSRC}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
44 ## Adding common setup Variables for running shell tests. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
45 . ${TESTSRC}/../../test_env.sh |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
46 |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
47 TARGET_CLASS=OOMCrashClass1960_2 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
48 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
49 echo "INFO: extracting the target class." |
8832 | 50 ${COMPILEJAVA}${FS}bin${FS}jar xvf \ |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
51 ${TESTSRC}${FS}testcase.jar ${TARGET_CLASS}.class |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
52 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
53 # remove any hs_err_pid that might exist here |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
54 rm -f hs_err_pid*.log |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
55 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
56 echo "INFO: checking for 32-bit versus 64-bit VM." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
57 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version 2>&1 \ |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
58 | grep "64-Bit [^ ][^ ]* VM" > /dev/null 2>&1 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
59 status="$?" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
60 if [ "$status" = 0 ]; then |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
61 echo "INFO: testing a 64-bit VM." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
62 is_64_bit=true |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
63 else |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
64 echo "INFO: testing a 32-bit VM." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
65 fi |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
66 |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
67 if [ "$is_64_bit" = true ]; then |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
68 # limit is 768MB in 8-byte words (1024 * 1024 * 768 / 8) == 100663296 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
69 MALLOC_MAX=100663296 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
70 else |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
71 # limit is 768MB in 4-byte words (1024 * 1024 * 768 / 4) == 201326592 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
72 MALLOC_MAX=201326592 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
73 fi |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
74 echo "INFO: MALLOC_MAX=$MALLOC_MAX" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
75 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
76 echo "INFO: executing the target class." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
77 # -XX:+PrintCommandLineFlags for debugging purposes |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
78 # -XX:+IgnoreUnrecognizedVMOptions so test will run on a VM without |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
79 # the new -XX:MallocMaxTestWords option |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
80 # -XX:+UnlockDiagnosticVMOptions so we can use -XX:MallocMaxTestWords |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
81 # -XX:MallocMaxTestWords limits malloc to $MALLOC_MAX |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
82 ${TESTJAVA}${FS}bin${FS}java \ |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
83 -XX:+PrintCommandLineFlags \ |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
84 -XX:+IgnoreUnrecognizedVMOptions \ |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
85 -XX:+UnlockDiagnosticVMOptions \ |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
86 -XX:MallocMaxTestWords=$MALLOC_MAX \ |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
87 ${TESTVMOPTS} ${TARGET_CLASS} > test.out 2>&1 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
88 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
89 echo "INFO: begin contents of test.out:" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
90 cat test.out |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
91 echo "INFO: end contents of test.out." |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
92 |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
93 echo "INFO: checking for memory allocation error message." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
94 # We are looking for this specific memory allocation failure mesg so |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
95 # we know we exercised the right allocation path with the test class: |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
96 MESG1="Native memory allocation (malloc) failed to allocate 25696531[0-9][0-9] bytes" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
97 grep "$MESG1" test.out |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
98 status="$?" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
99 if [ "$status" = 0 ]; then |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
100 echo "INFO: found expected memory allocation error message." |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
101 else |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
102 echo "INFO: did not find expected memory allocation error message." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
103 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
104 # If we didn't find MESG1 above, then there are several scenarios: |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
105 # 1) -XX:MallocMaxTestWords is not supported by the current VM and we |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
106 # didn't fail TARGET_CLASS's memory allocation attempt; instead |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
107 # we failed to find TARGET_CLASS's main() method. The TARGET_CLASS |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
108 # is designed to provoke a memory allocation failure during class |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
109 # loading; we actually don't care about running the class which is |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
110 # why it doesn't have a main() method. |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
111 # 2) we failed a memory allocation, but not the one we were looking |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
112 # so it might be that TARGET_CLASS no longer tickles the same |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
113 # memory allocation code path |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
114 # 3) TARGET_CLASS reproduces the failure mode (SIGSEGV) fixed by |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
115 # 6878713 because the test is running on a pre-fix VM. |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
116 echo "INFO: checking for no main() method message." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
117 MESG2="Error: Main method not found in class" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
118 grep "$MESG2" test.out |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
119 status="$?" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
120 if [ "$status" = 0 ]; then |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
121 echo "INFO: found no main() method message." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
122 else |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
123 echo "FAIL: did not find no main() method message." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
124 # status is non-zero for exit below |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
125 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
126 if [ -s hs_err_pid*.log ]; then |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
127 echo "INFO: begin contents of hs_err_pid file:" |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
128 cat hs_err_pid*.log |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
129 echo "INFO: end contents of hs_err_pid file." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
130 fi |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
131 fi |
2307
4a9604cd7c5f
6878713: Verifier heap corruption, relating to backward jsrs
kamg
parents:
diff
changeset
|
132 fi |
8802
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
133 |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
134 if [ "$status" = 0 ]; then |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
135 echo "PASS: test found one of the expected messages." |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
136 fi |
eca90b8a06eb
7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents:
6635
diff
changeset
|
137 exit "$status" |