Nuke warnings in tests
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user