[qunit] check that the browser has not died by himself before we asked him to stop.
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 17 Jun 2010 16:57:24 +0200
changeset 5780 07c1d64dff34
parent 5779 916ddfd72ac2
child 5787 20377d2fcc70
[qunit] check that the browser has not died by himself before we asked him to stop.
devtools/qunit.py
--- a/devtools/qunit.py	Thu Jun 17 16:56:38 2010 +0200
+++ b/devtools/qunit.py	Thu Jun 17 16:57:24 2010 +0200
@@ -70,6 +70,7 @@
 
     def stop(self):
         if self._process is not None:
+            assert self._process.returncode is None,  self._process.returncode
             os.kill(self._process.pid, signal.SIGTERM)
             self._process.wait()
             self._process = None