From fc167d8d0520bb2da347fdeebd127b7dd9350ede Mon Sep 17 00:00:00 2001 From: jlamothe Date: Mon, 13 Nov 2023 00:49:33 +0000 Subject: [PATCH] ensure first_log doesn't change on append --- test/append-test-log.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/append-test-log.c b/test/append-test-log.c index 2e1a42e..2d19797 100644 --- a/test/append-test-log.c +++ b/test/append-test-log.c @@ -96,6 +96,15 @@ append_to_existing(TestState *s) test.last_log = &second; append_test_log(&test, "baz"); + + // first shouldn't change + print("\t\tfirst_log\n"); + chk_ptr_eq( + s, + "ERROR: append_test_log(): first_log:", + test.first_log, + &first + ); } //jl