projects
/
libevent
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c83e99
)
Test another case of evbuffer_prepend
author
Nick Mathewson
<nickm@torproject.org>
Fri, 9 Apr 2010 21:19:39 +0000
(17:19 -0400)
committer
Nick Mathewson
<nickm@torproject.org>
Fri, 9 Apr 2010 21:19:39 +0000
(17:19 -0400)
test/regress_buffer.c
patch
|
blob
|
history
diff --git
a/test/regress_buffer.c
b/test/regress_buffer.c
index 9bccafcab472cd99892ca8b5fd7ffcabd9e4672d..89495915ad7819fd7d5b8f6c51e948611dbc1687 100644
(file)
--- a/
test/regress_buffer.c
+++ b/
test/regress_buffer.c
@@
-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);