ensure first_log doesn't change on append
This commit is contained in:
1 parent
586bbe71ed
commit
fc167d8d05
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user