[pypy-svn] r64351 - pypy/trunk/pypy/tool

iko at codespeak.net iko at codespeak.net
Sun Apr 19 12:43:56 CEST 2009


Author: iko
Date: Sun Apr 19 12:43:55 2009
New Revision: 64351

Modified:
   pypy/trunk/pypy/tool/watchdog.py
   pypy/trunk/pypy/tool/watchdog_nt.py
Log:
Print time elaped when killing test due to timeout



Modified: pypy/trunk/pypy/tool/watchdog.py
==============================================================================
--- pypy/trunk/pypy/tool/watchdog.py	(original)
+++ pypy/trunk/pypy/tool/watchdog.py	Sun Apr 19 12:43:55 2009
@@ -13,6 +13,7 @@
 def childkill():
     global timedout
     timedout = True
+    sys.stderr.write("==== test running for %d seconds ====\n" % timeout)
     sys.stderr.write("="*26 + "timedout" + "="*26 + "\n")
     try:
         os.kill(pid, signal.SIGTERM)

Modified: pypy/trunk/pypy/tool/watchdog_nt.py
==============================================================================
--- pypy/trunk/pypy/tool/watchdog_nt.py	(original)
+++ pypy/trunk/pypy/tool/watchdog_nt.py	Sun Apr 19 12:43:55 2009
@@ -10,6 +10,7 @@
 def childkill(pid):
     global timedout
     timedout = True
+    sys.stderr.write("==== test running for %d seconds ====\n" % timeout)
     sys.stderr.write("="*26 + "timedout" + "="*26 + "\n")
     ctypes.windll.kernel32.TerminateProcess(pid, 1)
 



More information about the Pypy-commit mailing list