From bea9a3e34a0db4ed7ab7749ac2f5ce546383bdf4 Mon Sep 17 00:00:00 2001 From: jlamothe Date: Tue, 21 Nov 2023 18:11:35 +0000 Subject: [PATCH] check the next field of the last log when appending --- test/append-test-log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/append-test-log.c b/test/append-test-log.c index 0d659e4..c616591 100644 --- a/test/append-test-log.c +++ b/test/append-test-log.c @@ -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); }