Path: blob/master/test/functional/cmdLineTests/sigabrtHandlingTest/sigabrtHandlingTest.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2020, 2021 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="SIGABRT Handling Tests" timeout="2400">27<variable name="CP" value="-cp $Q$$RESJAR$$Q$ VMBench.GPTests.GPTest" />2829<!--30The system, JIT, snap and heap dumps are disabled to reduce the memory footprint of31the tests. Only a Java dump will be generated when the JVM abort handler is invoked.32This should be sufficient to test the -XX:[+|-]HandleSIGABRT option.33-->34<variable name="DUMP" value="-Xdump:system+heap+snap+jit:none" />35<variable name="LIMT_HEAPSIZE" value="-Xmx20m" />36<variable name="NON_WINDOWS_PLATFORMS" value="aix.*,linux.*,zos.*,osx.*" />37<variable name="WINDOWS_PLATFORMS" value="win.*" />3839<test id="Default">40<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ $CP$ abort</command>41<output type="success" regex="no">Processing dump event "abort"</output>42<output type="required" regex="no">Processed dump event "abort"</output>43</test>4445<test id="-XX:+HandleSIGABRT">46<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT $CP$ abort</command>47<output type="success" regex="no">Processing dump event "abort"</output>48<output type="required" regex="no">Processed dump event "abort"</output>49</test>5051<test id="-XX:-HandleSIGABRT -XX:+HandleSIGABRT">52<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -XX:+HandleSIGABRT $CP$ abort</command>53<output type="success" regex="no">Processing dump event "abort"</output>54<output type="required" regex="no">Processed dump event "abort"</output>55</test>5657<test id="-XX:-HandleSIGABRT" platforms="$WINDOWS_PLATFORMS$">58<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT $CP$ abort</command>59<output type="success" regex="no">Invoking abort!</output>60<output type="failure" regex="no">Processing dump event "abort"</output>61</test>6263<test id="-XX:-HandleSIGABRT" platforms="$NON_WINDOWS_PLATFORMS$">64<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT $CP$ abort'</command>65<output type="success" regex="no">Invoking abort!</output>66<output type="failure" regex="no">Processing dump event "abort"</output>67</test>6869<test id="-XX:+HandleSIGABRT -XX:-HandleSIGABRT" platforms="$WINDOWS_PLATFORMS$">70<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -XX:-HandleSIGABRT $CP$ abort</command>71<output type="success" regex="no">Invoking abort!</output>72<output type="failure" regex="no">Processing dump event "abort"</output>73</test>7475<test id="-XX:+HandleSIGABRT -XX:-HandleSIGABRT" platforms="$NON_WINDOWS_PLATFORMS$">76<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -XX:-HandleSIGABRT $CP$ abort'</command>77<output type="success" regex="no">Invoking abort!</output>78<output type="failure" regex="no">Processing dump event "abort"</output>79</test>8081<test id="-XX:+HandleSIGABRT -Xrs">82<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -Xrs $CP$ abort</command>83<output type="success" regex="no">-XX:+HandleSIGABRT is not supported with -Xrs</output>84<output type="failure" regex="no">Invoking abort!</output>85<output type="failure" regex="no">Processing dump event "abort"</output>86</test>8788<test id="-XX:+HandleSIGABRT -Xrs:sync">89<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -Xrs:sync $CP$ abort</command>90<output type="success" regex="no">-XX:+HandleSIGABRT is not supported with -Xrs</output>91<output type="failure" regex="no">Invoking abort!</output>92<output type="failure" regex="no">Processing dump event "abort"</output>93</test>9495<test id="-Xrs" platforms="$WINDOWS_PLATFORMS$">96<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -Xrs $CP$ abort</command>97<output type="success" regex="no">Invoking abort!</output>98<output type="failure" regex="no">Processing dump event "abort"</output>99</test>100101<test id="-Xrs" platforms="$NON_WINDOWS_PLATFORMS$">102<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -Xrs $CP$ abort'</command>103<output type="success" regex="no">Invoking abort!</output>104<output type="failure" regex="no">Processing dump event "abort"</output>105</test>106107<test id="-XX:-HandleSIGABRT -Xrs" platforms="$WINDOWS_PLATFORMS$">108<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs $CP$ abort</command>109<output type="success" regex="no">Invoking abort!</output>110<output type="failure" regex="no">Processing dump event "abort"</output>111</test>112113<test id="-XX:-HandleSIGABRT -Xrs" platforms="$NON_WINDOWS_PLATFORMS$">114<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs $CP$ abort'</command>115<output type="success" regex="no">Invoking abort!</output>116<output type="failure" regex="no">Processing dump event "abort"</output>117</test>118119<test id="-XX:-HandleSIGABRT -Xrs:sync" platforms="$WINDOWS_PLATFORMS$">120<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs:sync $CP$ abort</command>121<output type="success" regex="no">Invoking abort!</output>122<output type="failure" regex="no">Processing dump event "abort"</output>123</test>124125<test id="-XX:-HandleSIGABRT -Xrs:sync" platforms="$NON_WINDOWS_PLATFORMS$">126<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs:sync $CP$ abort'</command>127<output type="success" regex="no">Invoking abort!</output>128<output type="failure" regex="no">Processing dump event "abort"</output>129</test>130131<!-- Remove any core file created by the OS -->132<exec command="bash -c 'rm core.*'" />133134</suite>135136137