Commit f17f7347 authored by Geoff Simmons's avatar Geoff Simmons

expand tests for format.c/get_hdr()

parent 836e8247
......@@ -192,6 +192,17 @@ static const char
MAN(hdr);
MASSERT(strcmp(hdr, "wilco") == 0);
/* Record not found */
recs[NRECORDS / 2].tag = SLT_RespHeader;
recs[NRECORDS - 1].tag = SLT_RespHeader;
hdr = get_hdr(&tx, SLT_ReqHeader, hdr_re);
MAZ(hdr);
/* Empty line list */
VSTAILQ_INIT(&tx.lines);
hdr = get_hdr(&tx, SLT_ReqHeader, hdr_re);
MAZ(hdr);
return NULL;
}
......
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