BIND 10 trac510, updated. 2cd7de7f848f743ee31c356fd7edc9231ba6ca3a [trac510] fix tests in src/bin/auth
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Aug 22 09:57:26 UTC 2011
The branch, trac510 has been updated
via 2cd7de7f848f743ee31c356fd7edc9231ba6ca3a (commit)
from 1468dd9e7bc1e0a045cdab88d1db815cc7e2bd52 (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 2cd7de7f848f743ee31c356fd7edc9231ba6ca3a
Author: Yoshitaka Aharen <aharen at jprs.co.jp>
Date: Mon Aug 22 18:28:16 2011 +0900
[trac510] fix tests in src/bin/auth
-----------------------------------------------------------------------
Summary of changes:
src/bin/auth/tests/statistics_unittest.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/statistics_unittest.cc b/src/bin/auth/tests/statistics_unittest.cc
index 0a1b0b8..f8b83f8 100644
--- a/src/bin/auth/tests/statistics_unittest.cc
+++ b/src/bin/auth/tests/statistics_unittest.cc
@@ -156,8 +156,9 @@ TEST_F(AuthCountersTest, incrementTCPCounter) {
}
TEST_F(AuthCountersTest, incrementInvalidCounter) {
- // Expect to die.
- EXPECT_DEATH(counters.inc(AuthCounters::SERVER_COUNTER_TYPES), "Assertion.+failed");
+ // Expect to throw an isc::OutOfRange
+ EXPECT_THROW(counters.inc(AuthCounters::SERVER_COUNTER_TYPES),
+ isc::OutOfRange);
}
TEST_F(AuthCountersTest, submitStatisticsWithoutSession) {
More information about the bind10-changes
mailing list