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