*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
81c9d3f57e
commit
a623fa28bc
11 changed files with 243 additions and 47 deletions
32
Tools/WAD/Test/debug.py
Normal file
32
Tools/WAD/Test/debug.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# WAD debugging module for python
|
||||
|
||||
import debug
|
||||
import sys
|
||||
|
||||
try:
|
||||
name = sys.argv[1]
|
||||
except:
|
||||
print """
|
||||
usage: debug.py test
|
||||
|
||||
seg - Segmentation fault due to uninitialized pointer.
|
||||
bus - Bus error.
|
||||
abort - Failed assertion.
|
||||
math - Math error.
|
||||
heap - Blown heap.
|
||||
overflow - Buffer overflow.
|
||||
"""
|
||||
sys.exit(1)
|
||||
|
||||
if name == "seg":
|
||||
debug.seg_crash()
|
||||
elif name == "bus":
|
||||
debug.bus_crash()
|
||||
elif name == "abort":
|
||||
debug.abort_crash(-2)
|
||||
elif name == "math":
|
||||
debug.math_crash(3,0)
|
||||
elif name == "heap":
|
||||
debug.blowheap_crash()
|
||||
elif name == "overflow":
|
||||
debug.overflow_crash()
|
||||
Loading…
Add table
Add a link
Reference in a new issue