]> granicus.if.org Git - libevent/commitdiff
Add missing check to test_evbuffer_file_segment_add_cleanup_cb
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:33:45 +0000 (19:33 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:33:45 +0000 (19:33 -0400)
test/regress_buffer.c

index 0a7c216b45523fd2531ce05732f1fe962c1fd360..ab11de940cb2573506b44d302125304e152333cd 100644 (file)
@@ -892,6 +892,7 @@ test_evbuffer_file_segment_add_cleanup_cb(void* ptr)
        char const* arg = "token";
 
        fd = regress_make_tmpfile("file_segment_test_file", 22, &tmpfilename);
+       tt_int_op(fd, >=, 0);
 
        evb = evbuffer_new();
        tt_assert(evb);