Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
fdefb47d
Commit
fdefb47d
authored
Nov 16, 2011
by
JINMEI Tatuya
Browse files
[1332] fixed a bug in the previous update to the test: termination condtion
was wrong.
parent
93a5d45d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/database_unittest.cc
View file @
fdefb47d
...
...
@@ -1072,7 +1072,9 @@ public:
ASSERT_TRUE
(
jnl_reader
);
ConstRRsetPtr
rrset
;
vector
<
JournalEntry
>::
const_iterator
it
=
expected
.
begin
();
while
((
rrset
=
jnl_reader
->
getNextDiff
())
!=
NULL
)
{
for
(
rrset
=
jnl_reader
->
getNextDiff
();
rrset
&&
it
!=
expected
.
end
();
rrset
=
jnl_reader
->
getNextDiff
(),
++
it
)
{
typedef
DatabaseAccessor
Accessor
;
RRsetPtr
expected_rrset
(
new
RRset
(
Name
((
*
it
).
data_
[
Accessor
::
DIFF_NAME
]),
...
...
@@ -1084,10 +1086,6 @@ public:
expected_rrset
->
getClass
(),
(
*
it
).
data_
[
Accessor
::
DIFF_RDATA
]));
isc
::
testutils
::
rrsetCheck
(
expected_rrset
,
rrset
);
++
it
;
if
(
it
==
expected
.
end
())
{
break
;
}
}
// We should have examined all entries of both expected and
// actual data.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment