BIND 10 trac2353, updated. 424b8d83f6059738f2edb01564ec9ce1db223b08 [2353] Test bind10_src.fatal_signal()
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Nov 7 05:15:36 UTC 2012
The branch, trac2353 has been updated
via 424b8d83f6059738f2edb01564ec9ce1db223b08 (commit)
via 3590bad22f52396c91663cc75b8548f6df134c60 (commit)
from 4a9b794019090fd826688bca0aee4dc565756cc1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 424b8d83f6059738f2edb01564ec9ce1db223b08
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Nov 7 10:44:58 2012 +0530
[2353] Test bind10_src.fatal_signal()
commit 3590bad22f52396c91663cc75b8548f6df134c60
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Nov 7 10:39:36 2012 +0530
[2353] Test bind10_src.get_signame()
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/tests/bind10_test.py.in | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 18d0011..82d96d2 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -1705,6 +1705,25 @@ class TestFunctions(unittest.TestCase):
# second call should not assert anyway
bind10_src.remove_lock_files()
+ def test_get_signame(self):
+ # just test with some samples
+ signame = bind10_src.get_signame(signal.SIGTERM)
+ self.assertEqual('SIGTERM', signame)
+ signame = bind10_src.get_signame(signal.SIGKILL)
+ self.assertEqual('SIGKILL', signame)
+ # 59426 is hopefully an unused signal on most platforms
+ signame = bind10_src.get_signame(59426)
+ self.assertEqual('Unknown signal 59426', signame)
+
+ def test_fatal_signal(self):
+ self.assertIsNone(bind10_src.boss_of_bind)
+ bind10_src.boss_of_bind = BoB()
+ bind10_src.boss_of_bind.runnable = True
+ bind10_src.fatal_signal(signal.SIGTERM, None)
+ # Now, runnable must be False
+ self.assertFalse(bind10_src.boss_of_bind.runnable)
+ bind10_src.boss_of_bind = None
+
if __name__ == '__main__':
# store os.environ for test_unchanged_environment
original_os_environ = copy.deepcopy(os.environ)
More information about the bind10-changes
mailing list