tests/python: Add a test for stack size segfault

This commit is contained in:
Jamie Hewland 2017-12-18 18:05:58 +02:00
parent 76c01078f0
commit b6c5ab4eb7
3 changed files with 15 additions and 0 deletions

View File

@ -160,6 +160,7 @@ imageTests+=(
python-imports
python-pip-requests-ssl
python-sqlite3
python-stack-size
'
[rabbitmq]='
rabbitmq-basics

View File

@ -0,0 +1,13 @@
import threading
import sys
def fun(i):
try:
fun(i+1)
except:
sys.exit(0)
t = threading.Thread(target=fun, args=[1])
t.start()

View File

@ -0,0 +1 @@
../run-python-in-container.sh