Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
8eb3dbe5
Commit
8eb3dbe5
authored
Feb 01, 2013
by
JINMEI Tatuya
Browse files
[master] use temp vars for SunStudio incapable of type matching with template.
committing at my discretion.
parent
fbb78097
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/memory/treenode_rrset_unittest.cc
View file @
8eb3dbe5
...
...
@@ -354,14 +354,18 @@ TEST_F(TreeNodeRRsetTest, toWire) {
const
uint32_t
ttl
=
0
;
const
TreeNodeRRset
rrset
(
rrclass_
,
www_node_
,
a_rdataset_
,
true
,
&
ttl
);
checkToWireResult
(
expected_renderer
,
actual_renderer
,
rrset
,
www_name_
,
textToRRset
(
"www.example.com. 0 IN A 192.0.2.1
\n
"
"www.example.com. 0 IN A 192.0.2.2"
),
textToRRset
(
"www.example.com. 0 IN RRSIG "
"A 5 2 3600 20120814220826 "
"20120715220826 1234 example.com. FAKE"
),
true
);
// We need separate variable for the following two: SunStudio cannot
// automatically promote RRsetPtr to ConstRRsetPtr in the templated
// function.
ConstRRsetPtr
expected_rrset
=
textToRRset
(
"www.example.com. 0 IN A 192.0.2.1
\n
"
"www.example.com. 0 IN A 192.0.2.2"
);
ConstRRsetPtr
expected_rrsig_rrset
=
textToRRset
(
"www.example.com. 0 IN RRSIG "
"A 5 2 3600 20120814220826 "
"20120715220826 1234 example.com. FAKE"
);
checkToWireResult
(
expected_renderer
,
actual_renderer
,
rrset
,
www_name_
,
expected_rrset
,
expected_rrsig_rrset
,
true
);
}
{
...
...
Write
Preview
Markdown
is supported
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