summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-05 05:17:10 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-05 05:17:10 -0700
commit3baed89ca3e17d59f8e4b8a8453c88f26d0099d3 (patch)
tree164e721803e071d6eb8dbb817b5119a83b36757c
parent93ef99895d96000d8f09c1c698a8bab66821778a (diff)
downloadportage-3baed89ca3e17d59f8e4b8a8453c88f26d0099d3.tar.gz
portage-3baed89ca3e17d59f8e4b8a8453c88f26d0099d3.tar.bz2
portage-3baed89ca3e17d59f8e4b8a8453c88f26d0099d3.zip
In IpcDaemonTestCase, assert that process and daemon isAlive() methods
return False after each run.
-rw-r--r--pym/portage/tests/ebuild/test_ipc_daemon.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/tests/ebuild/test_ipc_daemon.py b/pym/portage/tests/ebuild/test_ipc_daemon.py
index caf54c9b9..6e2fe36e1 100644
--- a/pym/portage/tests/ebuild/test_ipc_daemon.py
+++ b/pym/portage/tests/ebuild/test_ipc_daemon.py
@@ -4,7 +4,6 @@
import shutil
import tempfile
import time
-import portage
from portage import os
from portage import _python_interpreter
from portage.tests import TestCase
@@ -70,6 +69,8 @@ class IpcDaemonTestCase(TestCase):
self.assertEqual(self.received_command, True,
"command not received after %d seconds" % \
(time.time() - start_time,))
+ self.assertEqual(proc.isAlive(), False)
+ self.assertEqual(daemon.isAlive(), False)
self.assertEqual(exit_command.exitcode, exitcode)
# Intentionally short timeout test for QueueScheduler.run()
@@ -104,6 +105,7 @@ class IpcDaemonTestCase(TestCase):
"command received after %d seconds" % \
(time.time() - start_time,))
self.assertEqual(proc.isAlive(), False)
+ self.assertEqual(daemon.isAlive(), False)
self.assertEqual(proc.returncode == os.EX_OK, False)
finally: