BIND 10 trac2861, updated. 009e306698d3c8018fc2a83aa2c9cb6bd787a875 [2861] Test that we abort on unexpected errors
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jul 11 07:14:08 UTC 2013
The branch, trac2861 has been updated
via 009e306698d3c8018fc2a83aa2c9cb6bd787a875 (commit)
from e746e58a9fec019dd8a944baeed75c685a6cdf28 (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 009e306698d3c8018fc2a83aa2c9cb6bd787a875
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Jul 11 09:10:30 2013 +0200
[2861] Test that we abort on unexpected errors
-----------------------------------------------------------------------
Summary of changes:
.../auth/tests/datasrc_clients_builder_unittest.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/datasrc_clients_builder_unittest.cc b/src/bin/auth/tests/datasrc_clients_builder_unittest.cc
index 53a1f2c..f9c2cf2 100644
--- a/src/bin/auth/tests/datasrc_clients_builder_unittest.cc
+++ b/src/bin/auth/tests/datasrc_clients_builder_unittest.cc
@@ -131,6 +131,16 @@ TEST_F(DataSrcClientsBuilderTest, commandFinished) {
EXPECT_EQ(1, result);
}
+// Test that low-level errors with the synchronization socket
+// (an unexpected condition) is detected and program aborted.
+TEST_F(DataSrcClientsBuilderTest, finishedCrash) {
+ command_queue.push_back(Command(SHUTDOWN, ConstElementPtr(),
+ emptyCallsback));
+ // Break the socket
+ close(write_end);
+ EXPECT_DEATH_IF_SUPPORTED({builder.run();}, "");
+}
+
TEST_F(DataSrcClientsBuilderTest, runMultiCommands) {
// Two NOOP commands followed by SHUTDOWN. We should see two doNoop()
// calls.
More information about the bind10-changes
mailing list