Commit df791ef3 authored by Geoff Simmons's avatar Geoff Simmons

expand test for format.c/get_tag() for the case that the record

is not found
parent c16c4334
......@@ -137,6 +137,12 @@ static const char
rec = get_tag(&tx, SLT_RespHeader);
MASSERT(rec == &recs[NRECORDS - 1]);
/* Record not found */
recs[NRECORDS / 2].tag = SLT_ReqHeader;
recs[NRECORDS - 1].tag = SLT_ReqHeader;
rec = get_tag(&tx, SLT_RespHeader);
MAZ(rec);
/* Empty line list */
VSTAILQ_INIT(&tx.lines);
rec = get_tag(&tx, SLT_ReqHeader);
......
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