Commit 7e90e372 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] (re)enabled an MX test with fixing test data.

I'm not sure why this has been disabled until now, but it seems to me
just about test data preparation.  so I fixed it that way.
should be quite trivial, and test actually passed.  directly pushing,
skipping review.
parent d58cbd26
......@@ -74,12 +74,9 @@ TEST_F(Rdata_MX_Test, toWireRenderer) {
TEST_F(Rdata_MX_Test, toWireBuffer) {
renderer.writeName(Name("example.com"));
rdata_mx.toWire(obuffer);
}
TEST_F(Rdata_MX_Test, DISABLED_toWireBuffer) {
// XXX: does not pass
vector<unsigned char> data;
UnitTestUtil::readWireData("rdata_mx_toWire1", data);
UnitTestUtil::readWireData("rdata_mx_toWire2", data);
EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData, obuffer.getData(),
obuffer.getLength(), &data[0], data.size());
}
......
#
# compressed MX RDATA stored in an output buffer
#
# sentinel name: example.com.
# 0 1 2 3 4 5 6 7 8 9 10 1 2 (bytes)
#(7) e x a m p l e (3) c o m .
07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
# PREFERENCE: 10
00 0a
# EXCHANGE: not compressed
#(4) m x ptr=0
02 6d 78 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment