mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 15:05:16 +00:00
[master] use temp vars for SunStudio incapable of type matching with template.
committing at my discretion.
This commit is contained in:
@@ -354,14 +354,18 @@ TEST_F(TreeNodeRRsetTest, toWire) {
|
|||||||
const uint32_t ttl = 0;
|
const uint32_t ttl = 0;
|
||||||
const TreeNodeRRset rrset(rrclass_, www_node_, a_rdataset_, true,
|
const TreeNodeRRset rrset(rrclass_, www_node_, a_rdataset_, true,
|
||||||
&ttl);
|
&ttl);
|
||||||
checkToWireResult(expected_renderer, actual_renderer, rrset,
|
// We need separate variable for the following two: SunStudio cannot
|
||||||
www_name_,
|
// automatically promote RRsetPtr to ConstRRsetPtr in the templated
|
||||||
|
// function.
|
||||||
|
ConstRRsetPtr expected_rrset =
|
||||||
textToRRset("www.example.com. 0 IN A 192.0.2.1\n"
|
textToRRset("www.example.com. 0 IN A 192.0.2.1\n"
|
||||||
"www.example.com. 0 IN A 192.0.2.2"),
|
"www.example.com. 0 IN A 192.0.2.2");
|
||||||
|
ConstRRsetPtr expected_rrsig_rrset =
|
||||||
textToRRset("www.example.com. 0 IN RRSIG "
|
textToRRset("www.example.com. 0 IN RRSIG "
|
||||||
"A 5 2 3600 20120814220826 "
|
"A 5 2 3600 20120814220826 "
|
||||||
"20120715220826 1234 example.com. FAKE"),
|
"20120715220826 1234 example.com. FAKE");
|
||||||
true);
|
checkToWireResult(expected_renderer, actual_renderer, rrset, www_name_,
|
||||||
|
expected_rrset, expected_rrsig_rrset, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user