Skip to content

Commit d9c4f40

Browse files
committed
WIP: stderr-log trailer test progress
1 parent 8cf106b commit d9c4f40

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/unit/chunk_parsers_test.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,15 @@ SEASTAR_TEST_CASE(test_trailer_headers_parsing) {
109109
http_chunk_trailer_parser parser;
110110
size_t idx = 0;
111111
for (auto& tset : tests) {
112-
BOOST_TEST_INFO("trailer test idx=" << idx << " msg=" << tset.msg);
112+
std::cerr << "TRAILER-DEBUG idx=" << idx << " parsable=" << tset.parsable
113+
<< " msg-bytes=";
114+
for (char c : tset.msg) {
115+
std::cerr << std::hex << (unsigned)(unsigned char)c << ',';
116+
}
117+
std::cerr << std::dec << std::endl;
113118
parser.init();
114119
BOOST_REQUIRE(parser(tset.buf()).get().has_value());
120+
std::cerr << "TRAILER-DEBUG idx=" << idx << " result: failed=" << parser.failed() << std::endl;
115121
BOOST_REQUIRE_NE(parser.failed(), tset.parsable);
116122
if (tset.parsable) {
117123
auto heads = parser.get_parsed_headers();

0 commit comments

Comments
 (0)