Nuke warnings in tests

This commit is contained in:
Nils O. Selåsdal
2025-07-18 22:45:08 +02:00
parent cfe647f85d
commit 5b5ca445e9
11 changed files with 230 additions and 230 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ START_TEST (test_dbuf)
fail_if(uc_dbuf_remaining(&buf) != 105);
fail_if(uc_dbuf_len(&buf) != 5);
ck_assert_str_eq((char *)buf.start, "ABCD");
uc_dbuf_take(&buf, 5);
fail_if(uc_dbuf_remaining(&buf) != 120);
@@ -154,7 +154,7 @@ START_TEST (test_dbuf_add_ensure_take)
fail_if(rc != 0);
//ok, dbuf adds the ensured capacity to the existing buflen
//so it becomes 100, not 90 even though the buffer is already empty
fail_if(uc_dbuf_remaining(buf) != 100, "remaining %zu", (uc_dbuf_remaining(buf)));
fail_if(uc_dbuf_remaining(buf) != 100);
fail_if(uc_dbuf_buflen(buf) != 100);
memset(buf->end, 0xDE, 90);
uc_dbuf_added(buf, 90);