test


Log

Author Commit Date CI Message
John Ohl f5b47657 2014-12-22T00:46:56 Fix warnings when compiling with clang 3.5
Nick Mathewson cb737041 2014-12-15T12:50:11 Fix annoying heisenbug in test-time.c
Nick Mathewson 7fd49414 2014-11-30T19:26:20 Merge remote-tracking branch 'origin/pr/182'
Nick Mathewson 154006ad 2014-11-30T11:09:28 More evbuffer_peek() test cases
Azat Khuzhin e2d139dd 2014-11-11T14:25:47 test/evbuffer_peek: add regress in case we have first buffer greater
John Ohl b0e99244 2014-10-29T03:40:44 Add test for evhttp_connection_free_on_completion
Azat Khuzhin 3ca9d43d 2014-04-10T19:33:45 evdns: add retry/reissue tests for EVDNS_BASE_DISABLE_WHEN_INACTIVE
Nick Mathewson 89c1a3b7 2014-09-18T12:40:38 Fix several memory leaks in the unit tests. Also add a comment to buffer.c about why we call evbuffer_file_segment_free on failure to add the segment.
Nick Mathewson 364c1106 2014-09-18T12:12:36 Fix for a677b72bd6d9d378daf9775966aa8ca574e26e67
Nick Mathewson fb57b8ba 2014-09-18T12:08:50 Make a buffer larger in the tests to avoid a scary evbuffer_copyout_from() The call was safe, but coverity couldn't tell. CID 1239294.
Nick Mathewson ca5b5c7d 2014-09-18T12:04:16 Use a more precise calculation for max in time-ratelim.c CID 1239297
Nick Mathewson a677b72b 2014-09-18T12:02:13 Use evutil_weakrand() in unit tests. (Coverity doesn't like random() or rand(). We don't care; this is for unit tests.) Fixes CID 1239298, 1239296, 1239295, 1239293.
Nick Mathewson 76643dd0 2014-09-18T11:54:39 Fix a c90 warning
Nick Mathewson c119f241 2014-09-18T11:54:04 Fix a dead-code warning in unit tests. CID 1193548
Nick Mathewson 37390574 2014-09-18T11:52:16 Fix a use-after-free in unit tests. CID 752027
Nick Mathewson c243dbf4 2014-09-18T11:44:11 Merge pull request #168 from ufo2243/master make bufferevent_getwatermark api more robust
Nick Mathewson 35f107de 2014-09-18T11:36:08 Merge remote-tracking branch 'origin/patches-2.0'
Maks Naumov 79800df7 2014-03-25T13:35:13 regress_buffer: fix 'memcmp' compare size
Nick Mathewson 73615a37 2014-09-18T11:31:52 Merge pull request #118 from azat/http-forward-family-to-bufferevent Add evhttp_connection_set_family() to set addrinfo->family for DNS requests
Nick Mathewson 08c88ea5 2014-09-18T11:28:19 use correct tt macro for pointer compare
Nick Mathewson afce2721 2014-09-18T11:25:27 Merge pull request #128 from azat/tests-disable-when-inactive-v5 Some tests for EVDNS_BASE_DISABLE_WHEN_INACTIVE flag
ufo2243 a21e5108 2014-09-12T11:51:59 make bufferevent_getwatermark api more robust
Nick Mathewson 9f3a8acf 2014-08-29T14:38:09 Merge pull request #153 from azat/tests-simplestsignal test/regress: add simplestsignal: to track reorder bugs separately
Nick Mathewson f691389e 2014-08-29T14:28:09 Change return type of evutil_load_windows_system_library_ to HMODULE Noted by Miles Chan as issue #146
Azat Khuzhin b897beff 2014-02-23T02:31:51 test/regress: add simplestsignal: to track reorder bugs separately
Nick Mathewson 8da5a186 2014-05-08T13:21:49 Update to a more recent tinytest_macros. This one has less of a tendency to suppress important type warnings.
Azat Khuzhin 5ca9e97e 2014-04-11T18:50:10 regress dns: drop alarm() (since windows don't have it)
Azat Khuzhin fea86a64 2014-04-10T01:11:42 evdns: add regress test for flag EVDNS_BASE_DISABLE_WHEN_INACTIVE without ns
Azat Khuzhin ad0493ee 2014-04-09T17:48:12 evdns: add regress for EVDNS_BASE_DISABLE_WHEN_INACTIVE base flag
Azat Khuzhin 3fbf3cc9 2014-03-27T00:49:00 test/http: add regress test for set family to AF_INET6
Azat Khuzhin 42aefeb0 2014-03-27T00:40:14 test: add regress for evhttp_connection_set_family() with AF_INET and AF_UNSPEC
Azat Khuzhin 177b8a7c 2014-03-27T00:44:51 test: add family argument for http_connection_test_()
Nick Mathewson 6066f985 2014-03-26T11:02:52 Merge pull request #121 from azat/dns-regress-leaks regress_dns: fix leaks in getaddrinfo_async{,_cancel_stress} tests
Azat Khuzhin 2fdc5f29 2014-03-23T15:12:29 regress_dns: fix leaks in getaddrinfo_async{,_cancel_stress} tests
Trond Norbye dc82c8d3 2014-03-21T11:59:55 Renamed sin to saddr due to name conflict During building on MSVC 2013 I got a compiler error by a type conflict for sin: test-fdleak.c(60) : error C2365: 'sin' : redefinition; previous definition was 'function' test-fdleak.c(134) : error C2070: 'double (__cdecl *)()': illegal sizeof operand test-fdleak.c(134) : error C2198: 'evconnlistener_new_bind' : too few arguments for call test-fdleak.c(148) : error C2070: 'double (__cdecl *)()': illegal sizeof operand test-fdleak.c(148) : error C2168: 'memcpy' : too few actual parameters for intrinsic function test-fdleak.c(149) : error C2224: left of '.sin_family' must have struct/union type test-fdleak.c(212) : error C2070: 'double (__cdecl *)()': illegal sizeof operand test-fdleak.c(212) : error C2198: 'bufferevent_socket_connect' : too few arguments for call test-fdleak.c(239) : error C2070: 'double (__cdecl *)()': illegal sizeof operand test-fdleak.c(239) : error C2168: 'memset' : too few actual parameters for intrinsic function test-fdleak.c(240) : error C2224: left of '.sin_family' must have struct/union type test-fdleak.c(241) : error C2224: left of '.sin_addr' must have struct/union type test-fdleak.c(242) : error C2224: left of '.sin_port' must have struct/union type The simplest solution to this problem would be to rename the variable.
Nick Mathewson 6a1c4d50 2014-03-18T18:36:32 Correctly skip ipv6 http test on systems without ipv6
Nick Mathewson e5302ac7 2014-03-18T12:35:39 Remove integer-overflow unit tests There's not much point checking undefined behavior.
Nick Mathewson 58fc9b6c 2014-03-18T11:35:50 Fix ubsan warnings when parsing ipv4/ipv6 addrs left-shifting a one-byte integer by 24 invokes undefined behavior. Let's not do that.
Nick Mathewson 860c71c8 2014-03-18T11:13:45 Fix an illegal read error in the evbuffer_add_reference tests Found with AddressSanitizer
Nick Mathewson 2578ec14 2014-03-13T10:46:59 Avoid double-close paths in http tests Coverity spotted that there were some paths through the test functions that would double-close some sockets.
Nick Mathewson b6f15cce 2014-03-12T18:19:07 Add missing include to regress_finalize.h
Nick Mathewson 21477e40 2014-03-12T18:13:19 Skip http/ipv6_for_domain test when we have no ipv6 support
Nick Mathewson 4947c185 2014-03-12T14:29:15 Heap-allocate zlib data structure in regress_zlib tests
Nick Mathewson 7a804767 2014-03-06T18:09:00 Update to the latest version of tinytest This brings us up to tinytest 709a36ba63ff16d8
Nick Mathewson 239d8345 2014-03-06T10:18:09 Fix 'make distcheck' by adding regress.gen.[ch] to DISTCLEANFILES Patch from Harlan Stenn.
Joakim Soderberg e212c548 2014-01-22T13:19:49 Check for OSX when checking for clang.
Nick Mathewson 5c142a7e 2014-01-21T14:53:47 Merge remote-tracking branch 'origin/pr/98'
Nick Mathewson 4cb44fdf 2014-01-21T14:26:01 Merge remote-tracking branch 'joakimsoderberg/new_cmake' Conflicts: sample/https-client.c
Nick Mathewson c2076824 2014-01-21T12:21:37 Fix a c90 warning
Joakim Söderberg 4e143958 2014-01-21T11:30:27 Change all uses of WIN32 to _WIN32
Diego Giagio b1b69ac7 2014-01-17T23:20:42 Implemented EV_CLOSED event for epoll backend (EPOLLRDHUP). - Added new EV_CLOSED event - detects premature connection close by clients without the necessity of reading all the pending data. Does not depend on EV_READ and/or EV_WRITE. - Added new EV_FEATURE_EARLY_CLOSED feature for epoll. Must be supported for listening to EV_CLOSED event. - Added new regression test: test-closed.c - All regression tests passed (test/regress and test/test.sh) - strace output of test-closed using EV_CLOSED: socketpair(PF_LOCAL, SOCK_STREAM, 0, [6, 7]) = 0 sendto(6, "test string\0", 12, 0, NULL, 0) = 12 shutdown(6, SHUT_WR) = 0 epoll_ctl(3, EPOLL_CTL_ADD, 7, {EPOLLRDHUP, {u32=7, u64=7}}) = 0 epoll_wait(3, {{EPOLLRDHUP, {u32=7, u64=7}}}, 32, 3000) = 1 epoll_ctl(3, EPOLL_CTL_MOD, 7, {EPOLLRDHUP, {u32=7, u64=7}}) = 0 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYM... write(1, "closed_cb: detected connection close "..., 45) = 45
Joakim Soderberg 24d64666 2014-01-14T17:53:47 Fix so that old nmake project still builds.
Nick Mathewson d240328d 2014-01-08T13:02:37 Fix even more coverity warnings.
Nick Mathewson 860767e8 2014-01-08T12:46:09 Fix a couple of compilation warnings in regress_http.c
Nick Mathewson 544cf888 2014-01-08T11:58:50 Whoops; fix compilation in bench.c
Nick Mathewson ff7f7396 2014-01-08T11:54:56 Fix coverity warnings in benchmark tools. Again, not harmful, but best to stay warning-free.
Nick Mathewson 867f401f 2014-01-08T11:51:22 Fix a pile of coverity warnings in the unit tests Most of these problems can only trigger when the tests fail, but it's good hygiene to keep the code warning-free in any case.
Nick Mathewson 8d15f57f 2014-01-07T16:59:26 Merge remote-tracking branch 'asweeny86/on-complete-cb'
Andrew Sweeney b85f3987 2014-01-06T21:19:15 Update unit test to make sure that the callback happens after the output data is written
Nick Mathewson f9e091bf 2014-01-06T12:11:30 Merge remote-tracking branch 'asweeny86/event-count-max'
Andrew Sweeney b083ca05 2014-01-05T20:35:46 Provide on request complete callback facility This patch provides the ability to receive a callback on the completion of a request. The callback takes place immediately before the request's resources are released.
Andrew Sweeney 26230a2d 2014-01-05T16:30:35 Added unit test for max event counts
Nick Mathewson b4ef3def 2013-12-24T10:33:58 Merge remote-tracking branch 'mistotebe/bufferevent_trigger'
Nick Mathewson 87fa2b00 2013-12-23T20:46:38 Unit tests for active_by_fd; unsupport active_by_fd(TIMEOUT) [It turns out that event_base_active_by_fd(TIMEOUT) didn't actually work right. Feel free to add it back in as a patch.]
Joakim Soderberg 0ef1d04e 2013-12-17T14:32:07 Get rid of unknown pragma warnings.
Joakim Söderberg 69c3516b 2013-12-17T13:28:23 Get rid of deprecation warnings for OpenSSL on OSX 10.7+
Joakim Soderberg 8f2af50f 2013-12-16T13:45:45 Don't segfault on no found event backend.
Joakim Soderberg 78da644f 2013-12-16T11:35:31 Fix bench_cascade program on Windows.
Joakim Soderberg dbf2b517 2013-12-16T11:26:29 Use evutil_closesocket instead.
Joakim Soderberg 99c1dc32 2013-12-12T18:21:11 More work on adding tests to CMake project
Joakim Soderberg e9fc014c 2013-12-12T16:33:20 Add all tests and benchmarks to CMake project. Also fixed some minor issues with what's built.
Joakim Soderberg e415196a 2013-12-09T18:05:32 Initial CMake commit.
Ondřej Kuzník a7384c78 2013-12-03T23:01:54 Add an option to trigger bufferevent event callbacks
Ondřej Kuzník 61ee18b8 2013-12-03T22:49:57 Add an option to trigger bufferevent I/O callbacks
Ondřej Kuzník 4ce242bd 2013-12-03T22:35:53 Add watermark introspection
Azat Khuzhin 4dd500cd 2013-10-01T19:54:09 regress_http: add tests for evhttp_connection_get_addr()
Azat Khuzhin 611e28b6 2013-10-01T19:54:57 regress_main: logging all if env EVENT_DEBUG_LOGGING_ALL isset
Nick Mathewson 0a051ef9 2013-09-16T12:29:48 Merge remote-tracking branch 'rosslagerwall/tree-build'
Ross Lagerwall 243386cc 2013-09-15T21:48:15 rpcgen: Generate regress.gen.[c,h] in build rather than src dir Currently an out-of-tree build will either write to the src dir or reuse the existing regress.gen.[c,h]. But if building from a read-only git tree (or if the git dir is cleaned), these files will not exist and the build fails. So write the files to the build dir. If the system does not have python, the regress.gen.[c,h] will be used from the src dir if they exist.
Nick Mathewson e193c959 2013-08-06T19:42:20 test_evutil_rtrim: add another missing check.
Nick Mathewson 82b6956c 2013-08-06T19:39:35 Finalize tests: add a missing check
Nick Mathewson f314900d 2013-08-06T19:38:48 DNS tests: add a missing check
Nick Mathewson 87cd6f01 2013-08-06T19:35:56 Fix some crash-on-fail cases in DNS regression tests Found by coverity.
Nick Mathewson eba4506a 2013-08-06T19:33:45 Add missing check to test_evbuffer_file_segment_add_cleanup_cb
Nick Mathewson 77658846 2013-08-06T19:32:21 Fix a logic error in test_evbuffer_freeze
Nick Mathewson 1104d0be 2013-08-06T19:31:26 Fix a (failure-only) null dereference in the unit tests
Nick Mathewson 7080d55c 2013-08-06T19:28:53 Use void casts to suppress some "unchecked return value" warns
Maxime Henrion fbc323b7 2013-07-31T15:02:07 Add checks for evhttp_connection_get_server() in unit tests. They validate that this function behave as expected; that is, it returns NULL for outgoing connections, and returns the HTTP server object that received the connection for incoming ones.
Mark Ellzey 4b3d5af8 2013-07-11T12:31:39 Add function to fetch underlying ratelimit cfg bufferevent_get_token_bucket_cfg() will return the struct ev_token_bucket_cfg for a bufferevent if available.
Mobai Zhang 0fa107d8 2013-07-02T16:01:02 Added event_base_get_num_events()
Nick Mathewson e1766a1b 2013-05-29T16:26:50 Actually use the log facility for reporting evdns problems. Fixes issue #63. Also refactors the evdns logging and log backend a bit, so that it wastes a little less code.
Azat Khuzhin 7e876df7 2013-05-13T19:50:30 Fix dns/leak_resume_send_err test. Because we don't cancel request, and want our callback to recieve DNS_ERR_SHUTDOWN, we use deferred callback, and there was - one extra malloc(), @see reply_schedule_callback() - and one missing free @see request_finished() (req->handle->pending_cb = 1) than we don't need to count in testleak_cleanup() So just decrement allocated_chunks to 2, like we already take care about it.
Azat Khuzhin 1cd9ff59 2013-05-13T19:20:42 Add tests for evdns_base_resume(). - leak_resume - leak_cancel_and_resume - leak_resume_send_err - leak_cancel_and_resume_send_err
Nick Mathewson 8ab612e3 2013-05-11T22:21:30 Whoops. It is gdi.lib, not gdi32.lib. (github issue #61)
Nick Mathewson 5ba8ab76 2013-05-10T21:38:26 Fix test compilation with nmake: add the gdi.lib dependency ACK: efekty
Nick Mathewson 85a40040 2013-05-01T13:37:57 Add regress_finalize to makefile.nmake
Nick Mathewson 5bc290e2 2013-05-01T10:04:08 Make http/connection_retry off-by-default
Nick Mathewson 9e3a99ca 2013-04-30T20:09:52 Fix a bug in fixing a bug in out-of-tree test-dumpevents
Nick Mathewson b48c7bf8 2013-04-30T14:40:50 Make regress_finalize work with malloc replacement disabled
Nick Mathewson cbfc35f6 2013-04-30T14:26:47 Fix some out-of-tree build bugs