]> granicus.if.org Git - pdns/commitdiff
Fixed NAPTR test
authorAki Tuomi <cmouse@desteem.org>
Tue, 21 May 2013 09:42:54 +0000 (12:42 +0300)
committerAki Tuomi <cmouse@desteem.org>
Thu, 23 May 2013 13:36:11 +0000 (16:36 +0300)
pdns/test-dnsrecords_cc.cc

index 2b4e8f236b1c4eeb7a27ff2b17373508ca8ab193..13634d6c36f8e3736b65e0de48ca908684a0fc59 100644 (file)
@@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(test_record_types) {
      (CASE_S(QType::SRV, "10 10 5060 sip.rec.test.", "\x00\x0a\x00\x0a\x13\xc4\x03sip\x03rec\x04test\x00",false))
 // non-local name
      (CASE_S(QType::SRV, "10 10 5060 sip.example.com.", "\x00\x0a\x00\x0a\x13\xc4\x03sip\x07""example\x03""com\x00",false))
-     (CASE_S(QType::NAPTR, "100 10 \"\" \"\" \"/urn:cid:.+@([^\\.]+\\.)(.*)$/\\2/i\" \".\"", "\x00\x64\x00\x0a\x00\x00\x20/urn:cid:.+@([^\\.]+\\.)(.*)$/\\2/i\x01.",true))
+     (CASE_S(QType::NAPTR, "100 10 \"\" \"\" \"/urn:cid:.+@([^\\\\.]+\\\\.)(.*)$/\\\\2/i\" .", "\x00\x64\x00\x0a\x00\x00\x20/urn:cid:.+@([^\\.]+\\.)(.*)$/\\2/i\x00",false))
      (CASE_S(QType::NAPTR, "100 50 \"s\" \"http+I2L+I2C+I2R\" \"\" _http._tcp.rec.test.", "\x00\x64\x00\x32\x01s\x10http+I2L+I2C+I2R\x00\x05_http\x04_tcp\x03rec\x04test\x00",false))
      (CASE_S(QType::KX, "10 mail.rec.test.", "\x00\x0a\x04mail\x03rec\x04test\x00",false))