check the next field of the last log when appending
This commit is contained in:
parent
57e4d2ba49
commit
bea9a3e34a
|
@ -136,8 +136,9 @@ static void
|
|||
chk_last(TestState *s, void *ptr)
|
||||
{
|
||||
LogData *ld = ptr;
|
||||
chk_ptr_chg(s, "last_log", ld->state.last_log, &ld->second);
|
||||
chk_str_eq(s, "last_log->text", ld->state.last_log->text, "baz");
|
||||
chk_ptr_chg(s, 0, ld->state.last_log, &ld->second);
|
||||
chk_str_eq(s, "text", ld->state.last_log->text, "baz");
|
||||
chk_ptr_eq(s, "next", ld->state.last_log->next, 0);
|
||||
free(ld->state.last_log->text);
|
||||
free(ld->state.last_log);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user