Path: blob/master/test/functional/cmdLineTests/gptest/gptests.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2004, 2018 IBM Corp. and others45This program and the accompanying materials are made available under6the terms of the Eclipse Public License 2.0 which accompanies this7distribution and is available at https://www.eclipse.org/legal/epl-2.0/8or the Apache License, Version 2.0 which accompanies this distribution and9is available at https://www.apache.org/licenses/LICENSE-2.0.1011This Source Code may also be made available under the following12Secondary Licenses when the conditions for such availability set13forth in the Eclipse Public License, v. 2.0 are satisfied: GNU14General Public License, version 2 with the GNU Classpath15Exception [1] and GNU General Public License, version 2 with the16OpenJDK Assembly Exception [2].1718[1] https://www.gnu.org/software/classpath/license.html19[2] http://openjdk.java.net/legal/assembly-exception.html2021SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception22-->2324<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">2526<suite id="J9 GP test" timeout="300">27<variable name="DUMP" value="-Xdump:system:none" />28<variable name="CP" value="-cp $Q$$RESJAR$$Q$ VMBench.GPTests.GPTest" />29<variable name="TARGET" value="GPTest" />30<variable name="OUTPUT" value="Unhandled exception" />31<variable name="THREADED" value=" " />32<variable name="FIBOUT" value=".*Fibonacci.*iterations.*" />33<variable name="UTILS_JAR" value="$UTILS_DIR$/utils.jar"/>3435<!-- Verifies JVM barfs on -XCEEHDLR when not on zos_s390 (31-bit) -->36<test id="-XCEEHDLR not supported on non 31-bit zOS">37<command>$EXE$ -XCEEHDLR </command>38<output type="success" regex="no">Command-line option unrecognised</output>39</test>4041<test id="reject -Xsignal:posixSignalHandler=cooperativeShutdown on non-zOS">42<command>$EXE$ -Xsignal:posixSignalHandler=cooperativeShutdown $CP$ </command>43<output type="success" regex="no">Command-line option unrecognised: -Xsignal:posixSignalHandler=cooperativeShutdown</output>44</test>4546<loop index="I" from="1" until="3" inc="1">4748<!-- Verifies that the arithmetic condition exception is converted to a Java ConditionException when -XCEEHDLR is present -->49<test id="user condition handler: float -XCEEHDLR $THREADED$">50<command>$EXE$ -XCEEHDLR $DUMP$ $CP$ $THREADED$ float</command>51<output type="required" regex="no">com.ibm.le.conditionhandling.ConditionException</output>52<output type="required" regex="no">Java_VMBench_GPTests_GPTest_gpFloat</output>53<output type="required" regex="no">facilityID: CEE</output>54<output type="required" regex="no">severity: 3</output>55<output type="required" regex="no">messageNumber: 3209</output>56<output type="required" regex="no">feedback token: 0x0 0x3 0xc 0x89 0x59 0xc3 0xc5 0xc5</output>57<output type="required" regex="no">at VMBench.GPTests.GPTest.gpFloat(Native Method)</output>58<output type="success" regex="no">Succesfully threw exception 10 times</output>59<output type="failure" regex="no">Unhandled exception</output>60</test>6162<!-- Verifies that a SEGV is NOT converted to a Java ConditionException when -XCEEHDLR is NOT present -->63<test id="user condition handler: read -XCEEHDLR $THREADED$">64<command>$EXE$ -XCEEHDLR $DUMP$ $CP$ $THREADED$ read</command>65<output type="success" regex="no">Unhandled exception</output>66<output type="required" regex="no">Java_VMBench_GPTests_GPTest_gpRead</output>67<output type="failure" regex="no">com.ibm.le.conditionhandling.ConditionException</output>68</test>6970<!-- Verifies that the arithmetic condition exception is NOT converted to a JavaCondition Exception when -XCEEHDLR is NOT present -->71<test id="user condition handler: float without -XCEEHDLR $THREADED$">72<command>$EXE$ $DUMP$ $CP$ $THREADED$ float</command>73<output type="success" regex="no">Unhandled exception</output>74<output type="required" regex="no">Java_VMBench_GPTests_GPTest_gpFloat</output>75<output type="failure" regex="no">com.ibm.le.conditionhandling.ConditionException</output>76</test>7778<!-- Verifies that the JVM installs its own LE condition handler on VM callin by verifying the one registered by the native does NOT get invoked -->79<test id="user condition handler: callin -XCEEHDLR $THREADED$">80<command>$EXE$ -XCEEHDLR $DUMP$ $CP$ $THREADED$ callin</command>81<output type="success" regex="no">Unhandled exception</output>82<output type="required" regex="no">Java_VMBench_GPTests_GPTest_gpRead</output>83<output type="failure" regex="no">gptest_le_condition_handler invoked</output>84</test>8586<!-- Verifies that without -XCEEHDLR the JVM does not register a condition handler on vmEntry, by making sure the one registered by the native DOES get invoked -->87<test id="user condition handler: callin without -XCEEHDLR $THREADED$">88<command>$EXE$ $DUMP$ $CP$ $THREADED$ callin</command>89<output type="success" regex="no">gptest_user_condition_handler invoked</output>90<output type="required" regex="no">Unhandled exception</output>91</test>9293<test id="abort $THREADED$">94<command>$EXE$ $DUMP$ $CP$ $THREADED$ abort</command>95<output type="success" regex="no">Processing dump event "abort"</output>96<output type="required" regex="no">Processed dump event "abort"</output>97</test>9899<test id="abort -Xsignal:posixSignalHandler=cooperativeShutdown $THREADED$">100<command>$EXE$ -Xsignal:posixSignalHandler=cooperativeShutdown $DUMP$ $CP$ $THREADED$ abort</command>101<output type="success" regex="no">Processing dump event "abort"</output>102<output type="required" regex="no">Processed dump event "abort"</output>103<output type="required" regex="no">CEE3250C The system or user abend U3565</output>104</test>105106<test id="softwareFloat $THREADED$">107<command>$EXE$ $DUMP$ $CP$ $THREADED$ softwareFloat</command>108<output type="success" regex="no">Processing dump event</output>109<output type="required" regex="no">Processed dump event</output>110</test>111112<test id="softwareFloat -Xsignal:posixSignalHandler=cooperativeShutdown $THREADED$">113<command>$EXE$ -Xsignal:posixSignalHandler=cooperativeShutdown $DUMP$ $CP$ $THREADED$ softwareFloat</command>114<output type="success" regex="no">CEE3250C The system or user abend U3565</output>115</test>116117<test id="hardwareFloat $THREADED$">118<command>$EXE$ $DUMP$ $CP$ $THREADED$ hardwareFloat</command>119<output type="success" regex="no">Unhandled exception</output>120</test>121122<test id="hardwareFloat -Xsignal:posixSignalHandler=cooperativeShutdown $THREADED$">123<command>$EXE$ -Xsignal:posixSignalHandler=cooperativeShutdown $DUMP$ $CP$ $THREADED$ hardwareFloat</command>124<output type="success" regex="no">Unhandled exception</output>125<output type="failure" regex="no">Processing dump event "abort"</output>126<output type="required" regex="no">CEE3209S The system detected a fixed-point divide exception (System Completion Code=0C9)</output>127</test>128129<test id="softwareRead $THREADED$">130<command>$EXE$ $DUMP$ $CP$ $THREADED$ softwareRead</command>131<output type="success" regex="no">Processing dump event</output>132<output type="required" regex="no">Processed dump event</output>133</test>134135<test id="softwareRead -Xsignal:posixSignalHandler=cooperativeShutdown $THREADED$">136<command>$EXE$ -Xsignal:posixSignalHandler=cooperativeShutdown $DUMP$ $CP$ $THREADED$ softwareRead</command>137<output type="success" regex="no">Unhandled exception</output>138<output type="required" regex="no">CEE3250C The system or user abend U3565</output>139</test>140141<test id="hardwareRead $THREADED$">142<command>$EXE$ $DUMP$ $CP$ $THREADED$ hardwareRead</command>143<output type="success" regex="no">Unhandled exception</output>144</test>145146<test id="hardwareRead -Xsignal:posixSignalHandler=cooperativeShutdown $THREADED$">147<command>$EXE$ -Xsignal:posixSignalHandler=cooperativeShutdown $DUMP$ $CP$ $THREADED$ hardwareRead</command>148<output type="success" regex="no">Unhandled exception</output>149<output type="failure" regex="no">Processing dump event "abort"</output>150<output type="required" regex="no">CEE3204S The system detected a protection exception (System Completion Code=0C4).</output>151</test>152153<!-- Verifies that a hardware float is NOT converted to a Java ConditionException when -Xsignal:userConditionHandler=percolate is present, and:154<!-- - diagnostics are generated -->155<!-- - the condition is percolated -->156<test id="hardware float -Xsignal:userConditionHandler=percolate $THREADED$">157<command>$EXE$ -Xsignal:userConditionHandler=percolate $DUMP$ $CP$ $THREADED$ hardwareFloat</command>158<output type="success" regex="no">Unhandled exception</output>159<output type="required" regex="no">Java_VMBench_GPTests_GPTest_gpHardwareFloat</output>160<output type="required" regex="no">Java dump written to</output>161<output type="required" regex="no">Snap dump written to</output>162<output type="required" regex="no">Processed dump event "gpf"</output>163<output type="required" regex="no">CEE3209S The system detected a fixed-point divide exception (System Completion Code=0C9)</output>164<output type="failure" regex="no">com.ibm.le.conditionhandling.ConditionException</output>165<output type="failure" regex="no">JVMJ9VM129E</output>166</test>167168169<!-- Verifies that a software float is NOT converted to a Java ConditionException when -Xsignal:userConditionHandler=percolate is present, and:170<!-- - diagnostics are generated -->171<!-- - the condition is percolated -->172<test id="software float -Xsignal:userConditionHandler=percolate $THREADED$">173<command>$EXE$ -Xsignal:userConditionHandler=percolate $DUMP$ $CP$ $THREADED$ softwareFloat</command>174<output type="success" regex="no">Unhandled exception</output>175<output type="required" regex="no">Java_VMBench_GPTests_GPTest_gpSoftwareFloat</output>176<output type="required" regex="no">Java dump written to</output>177<output type="required" regex="no">Snap dump written to</output>178<output type="required" regex="no">Processed dump event "gpf"</output>179<output type="required" regex="no">CEE5201S The signal SIGFPE was received</output>180<output type="failure" regex="no">com.ibm.le.conditionhandling.ConditionException</output>181<output type="failure" regex="no">Application resumed execution after handling an unrecoverable condition and illegally returned to, or called back into, Java</output>182</test>183184<!-- Verifies that with -Xsignal:userConditionHandler=percolate if the native user condition handler illegally resumes execution and calls back into the VM after a crash, that the trace assert is thrown -->185<test id="callInAndTriggerGPReadThenResumeAndCallInAgain with -Xsignal:userConditionHandler=percolate $THREADED$">186<command>$EXE$ -Xsignal:userConditionHandler=percolate $DUMP$ $CP$ $THREADED$ callInAndTriggerGPReadThenResumeAndCallInAgain</command>187<output type="success" regex="no">Unhandled exception</output>188<output type="success" regex="no">Entry_Name=Java_VMBench_GPTests_GPTest_gpRead</output>189<output type="required" regex="no">Java dump written to</output>190<output type="required" regex="no">Snap dump written to</output>191<output type="required" regex="no">Processed dump event "gpf"</output>192<output type="required" regex="no">JVMJ9VM129E</output>193<output type="required" regex="no">JVMJ9VM131E Terminating process using CEE3AB2() with abend 3565, reason 17, cleanup 0</output>194</test>195196<!-- Verifies that with -Xsignal:userConditionHandler=percolate if the native user condition handler illegally resumes execution and returns back to Java after a crash, that the trace assert is thrown -->197<test id="callInAndTriggerGPReadThenResumeAndReturnToJava with -Xsignal:userConditionHandler=percolate $THREADED$">198<command>$EXE$ -Xsignal:userConditionHandler=percolate $DUMP$ $CP$ $THREADED$ callInAndTriggerGPReadThenResumeAndReturnToJava</command>199<output type="success" regex="no">Unhandled exception</output>200<output type="success" regex="no">Entry_Name=Java_VMBench_GPTests_GPTest_gpRead</output>201<output type="required" regex="no">Java dump written to</output>202<output type="required" regex="no">Snap dump written to</output>203<output type="required" regex="no">Processed dump event "gpf"</output>204<output type="required" regex="no">JVMJ9VM129E</output>205<output type="required" regex="no">JVMJ9VM131E Terminating process using CEE3AB2() with abend 3565, reason 17, cleanup 0</output>206</test>207208<!-- Verifies that with -Xsignal:userConditionHandler=percolate if the native user condition handler illegally resumes execution and returns back to the JIT after a crash, that the trace assert is thrown -->209<!-- - the test is implemented such that the java method returned to by the native is JITed -->210<test id="callInAndTriggerGPReadThenResumeAndReturnToJIT with -Xsignal:userConditionHandler=percolate $THREADED$">211<command>$EXE$ -Xjit:count=0 -Xsignal:userConditionHandler=percolate $DUMP$ $CP$ $THREADED$ callInAndTriggerGPReadThenResumeAndReturnToJIT</command>212<output type="success" regex="no">Unhandled exception</output>213<output type="success" regex="no">Entry_Name=Java_VMBench_GPTests_GPTest_gpRead</output>214<output type="required" regex="no">Java dump written to</output>215<output type="required" regex="no">Snap dump written to</output>216<output type="required" regex="no">Processed dump event "gpf"</output>217<output type="required" regex="no">JVMJ9VM130E</output>218<output type="required" regex="no">JVMJ9VM131E Terminating process using CEE3AB2() with abend 3565, reason 16, cleanup 0.</output>219</test>220221<test id="glaunch fib example">222<command>$GLAUNCH$ $JVMLIBPATH$ $JVM_OPTIONS$ $DUMP$ -cp $UTILS_JAR$ $FIBTARGET$</command>223<output type="success" regex="yes">$FIBOUT$</output>224</test>225226<!-- glaunch encounters segmentation fault before JVM is initialized -->227<test id="glaunch -Xsignal:userConditionHandler=percolate -GgpfBeforeVMInit" >228<command>$GLAUNCH$ $JVMLIBPATH$ $JVM_OPTIONS$ -GgpfBeforeVMInit -Xsignal:userConditionHandler=percolate $DUMP$ -cp $UTILS_JAR$ $FIBTARGET$</command>229<output type="failure" regex="no">Processing dump event</output>230<output type="failure" regex="no">Unhandled exception</output>231<output type="success" regex="no">CEE3204S The system detected a protection exception (System Completion Code=0C4)</output>232</test>233234<!-- glaunch encounters segmentation fault after main method is called -->235<test id="glaunch -Xsignal:userConditionHandler=percolate -GgpfAfterMain" >236<command>$GLAUNCH$ $JVMLIBPATH$ $JVM_OPTIONS$ -GgpfAfterMain -Xsignal:userConditionHandler=percolate $DUMP$ -cp $UTILS_JAR$ $FIBTARGET$</command>237<output type="failure" regex="no">Processing dump event</output>238<output type="failure" regex="no">Unhandled exception</output>239<output type="success" regex="no">CEE3204S The system detected a protection exception (System Completion Code=0C4)</output>240<output type="required" regex="yes">$FIBOUT$</output>241</test>242243<variable name="THREADED" value="thread" />244</loop>245246</suite>247248