summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_signal.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-08-11 03:49:10 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-08-11 03:49:10 (GMT)
commit8b8c59cf1db86682fdc48791a0fcfa997d36eb06 (patch)
tree35ed2e6342e34a016c80463decc7a1d2c4526717 /Lib/test/test_signal.py
parent08574770c54dcab5f44bc77e39fa1689beea2f84 (diff)
downloadcpython-8b8c59cf1db86682fdc48791a0fcfa997d36eb06.zip
cpython-8b8c59cf1db86682fdc48791a0fcfa997d36eb06.tar.gz
cpython-8b8c59cf1db86682fdc48791a0fcfa997d36eb06.tar.bz2
force_test_exit(): This has been completely ineffective
at stopping test_signal from hanging forever on the Tru64 buildbot. That could be because there's no such thing as signal.SIGALARM. Changed to the idiotic (but standard) signal.SIGALRM instead, and added some more debug output.
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r--Lib/test/test_signal.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index a6267d2..694e3f0 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -10,7 +10,10 @@ if verbose:
x = '-x'
else:
x = '+x'
+
pid = os.getpid()
+if verbose:
+ print "test runner's pid is", pid
# Shell script that will send us asynchronous signals
script = """
@@ -89,7 +92,8 @@ def force_test_exit():
time.sleep(MAX_DURATION + 5)
print >> sys.__stdout__, ' child should not have to kill parent'
for i in range(3):
- os.kill(pid, signal.SIGALARM)
+ os.kill(pid, signal.SIGALRM)
+ print >> sys.__stdout__, " child sent SIGALRM to", pid
finally:
os._exit(0)
# In parent (or error)