mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Test another case of evbuffer_prepend
This commit is contained in:
parent
8c83e99579
commit
1234b95a75
@ -1263,7 +1263,9 @@ test_evbuffer_prepend(void *ptr)
|
||||
buf1 = evbuffer_new();
|
||||
tt_assert(buf1);
|
||||
|
||||
evbuffer_add(buf1, "This string has 29 characters", 29);
|
||||
/* Case 0: The evbuffer is entirely empty. */
|
||||
evbuffer_prepend(buf1, "This string has 29 characters", 29);
|
||||
evbuffer_validate(buf1);
|
||||
|
||||
/* Case 1: Prepend goes entirely in new chunk. */
|
||||
evbuffer_prepend(buf1, "Short.", 6);
|
||||
|
Loading…
x
Reference in New Issue
Block a user