[Python-checkins] r51199 - python/trunk/Lib/test/test_signal.py

tim.peters python-checkins at python.org
Fri Aug 11 05:49:10 CEST 2006


Author: tim.peters
Date: Fri Aug 11 05:49:10 2006
New Revision: 51199

Modified:
   python/trunk/Lib/test/test_signal.py
Log:
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.


Modified: python/trunk/Lib/test/test_signal.py
==============================================================================
--- python/trunk/Lib/test/test_signal.py	(original)
+++ python/trunk/Lib/test/test_signal.py	Fri Aug 11 05:49:10 2006
@@ -10,7 +10,10 @@
     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 @@
             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)


More information about the Python-checkins mailing list