temp size assert for #1632

This commit is contained in:
Cœur 2024-05-24 05:31:27 +02:00 committed by Azat Khuzhin
parent 5fbc00a3cc
commit b202a72be4

View File

@ -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);