mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
temp size assert for #1632
This commit is contained in:
parent
5fbc00a3cc
commit
b202a72be4
@ -1373,6 +1373,7 @@ test_evbuffer_file_segment_add_cleanup_cb(void* ptr)
|
||||
struct evbuffer *evb = NULL;
|
||||
struct evbuffer_file_segment *seg = NULL, *segptr;
|
||||
char const* arg = "token";
|
||||
struct stat st;
|
||||
|
||||
fd = regress_make_tmpfile("file_segment_test_file", 22, &tmpfilename);
|
||||
/* On Windows, if TMP environment variable is corrupted, we may not be
|
||||
@ -1380,6 +1381,9 @@ test_evbuffer_file_segment_add_cleanup_cb(void* ptr)
|
||||
if (fd < 0)
|
||||
tt_skip();
|
||||
|
||||
fstat(fd, &st);
|
||||
tt_assert(st.st_size == 22);
|
||||
|
||||
evb = evbuffer_new();
|
||||
tt_assert(evb);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user