]> granicus.if.org Git - python/commitdiff
force_test_exit(): This has been completely ineffective
authorTim Peters <tim.peters@gmail.com>
Fri, 11 Aug 2006 03:49:10 +0000 (03:49 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 11 Aug 2006 03:49:10 +0000 (03:49 +0000)
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.

Lib/test/test_signal.py

index a6267d27f7f84d4aa9a841c1be95fdb84d9b64a5..694e3f06ddc57b85baaf434eb10ff6dd95d171c6 100644 (file)
@@ -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)