ensure first_log doesn't change on append

This commit is contained in:
jlamothe 2023-11-13 00:49:33 +00:00
parent 586bbe71ed
commit fc167d8d05

View File

@ -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