test


Log

Author Commit Date CI Message
Nick Mathewson 4dee4cc7 2012-02-02T11:45:23 Replace more C99/C++ comments with oldschool /* */ comments
Nick Mathewson 7622d265 2012-01-27T15:10:28 Make test-changelist faster
Nick Mathewson 4b7baec6 2012-01-26T16:56:33 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 9f9e259f 2012-01-26T15:04:24 Better workaround for Linux 3.2 edge-triggered epoll bug On further investigation, it appears that this problem is limited to AF_UNIX sockets, so let's just do the test on AF_INET sockets.
Nick Mathewson 95e2455c 2012-01-24T16:08:00 When including an -internal.h header outside the main tree, do so early Some of our unit tests and sample code need functions and structures defined in an -internal.h header. But that can freak out OpenSolaris, where stdio.h wants to define _FILE_OFFSET_BITS unless it's already defined, and then evconfig-internal.h defines it. Regular users should never ever use our -internal.h headers, so the solution is to make sure that if we're going to use them ourselves, we do so before system headers.
Nick Mathewson b9f7e5fd 2012-01-24T15:58:11 Allow more slop in deferred_cb_skew test; freebsd needs it
Nick Mathewson 3aa0e8a9 2012-01-24T15:30:31 Remove a couple of now-unused variables
Nick Mathewson b77b43fc 2012-01-24T14:59:37 Use test_timeval_diff_eq more consistently
Nick Mathewson 67a1763b 2012-01-24T14:33:10 Make regression tests run over 3x faster. This was mainly a matter of reducing timeouts and delays, paying special attention to every test that took longer than a second to finish. We could do better here; IMO anything over .7 sec is probably too long, but it's a big win as it is. Remember, interactive computing is a big win over batch processing: anything that makes you get up and walk away from the terminal might as well be making you carry your punch cards over to the mainframe.
Nick Mathewson ab14f7c1 2012-01-24T11:45:00 Reduce the timeout in the main/fork test. There was no reason for it to be so long, except for the lack of a usleep
Nick Mathewson f25d9d32 2012-01-24T11:42:26 Add an (internal) usleep function for use by unit tests
Nick Mathewson 18653fca 2012-01-24T11:17:06 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 5408ff3b 2012-01-24T11:16:26 Oops:remove an accidentally committed "sleep(1)" in a unit test
Nick Mathewson 10996a1a 2012-01-24T11:04:56 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson dab91877 2012-01-24T11:04:19 Workaround in the unit tests for an apparent epoll bug in Linux 3.2
Nick Mathewson fe0afabb 2012-01-24T10:29:31 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: event.c Edits required in: evmap.c
Nick Mathewson 3312b020 2012-01-23T17:43:35 Check event_base correctness at end of each unit test
Nick Mathewson 27737d55 2012-01-21T12:55:15 Add function to check referential integrity of an event_base
Nick Mathewson 26e85fcc 2012-01-09T16:54:19 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson cba48c7d 2012-01-09T16:44:53 Fix a race condition in the dns/bufferevent_connect_hostname test. As originally written, the test would only pass if the accept() callbacks for the evconnlistener were all invoked before the last of the CONNECTED/ERROR callbacks for the connecting/resolving bufferevent had its call to event_base_loopexit() complete. But this was only accidentally true in 2.0, and might not be true at all in 2.1 where we schedule event_base_once() callbacks more aggressively. Found by Sebastian Hahn.
Nick Mathewson cac02fad 2011-12-08T14:38:04 Merge remote-tracking branch 'origin/patches-2.0'
Zack Weinberg c986f232 2011-12-08T14:30:20 Fix behavior of evbuffer_peek(buf,-1,NULL,NULL,0) (Patch altered by nickm to not affect the behavior of evbuffer_peek(buf,-1,NULL,vec,n_vec).)
Nick Mathewson 5c7675cc 2011-12-08T14:05:47 whitespace fixes
Nick Mathewson de5428e7 2011-12-08T14:04:04 Merge remote-tracking branch 'fancycode/buffer_references' Conflicts: buffer.c
Joachim Bauch a8e5e2fc 2011-12-07T21:06:10 Changed use of refcounts to make sure referenced chains are freed in all cases.
Nick Mathewson 27e22255 2011-12-07T13:04:35 Add evbuffer_copyout_from to copy data from the middle of a buffer You could previously do this with evbuffer_peek() and some memcpys, but it was a bit more work than most folks wanted to get into. Closes sourceforge ticket 3108072
Nick Mathewson 35c5c955 2011-12-07T11:49:52 Bypass event_add when using event_base_once() for a 0-sec timeout Some people use event_base_once(EV_TIMEOUT) to make a callback get called "immediately". But this is pretty roundabout: it uses the timeout heap to immediately put the event onto the active queue, when it could just use event_active. Additionally, it can lead to surprising re-ordering behavior. This patch changes event_base_once so it bypasses event_add() and called event_active() directly on a pure-timeout event with an empty timeout.
Nick Mathewson 748a0d27 2011-12-06T13:38:40 Merge remote-tracking branch 'origin/patches-2.0'
Colin Watt 19277763 2011-12-06T13:35:54 Fix a silly compilation error with the sun compiler Apparently, other compilers were allowing "return free(x)" in a function returning void.
Nick Mathewson fe9e831f 2011-11-15T17:22:45 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson b17b0eec 2011-11-15T17:11:42 Fix DNS memleak checks when running with malloc-replacement/debugging disabled
Nick Mathewson 54142c94 2011-11-14T11:43:31 unit tests for EVBUFFER_EOL_NUL
Nick Mathewson 27b5398f 2011-11-11T17:56:08 Tweaks, fixups, and comments on evbuffer_add_iovec
Mark Ellzey aaec5aca 2011-10-25T09:13:15 Added evbuffer_add_iovec and unit tests.
Nick Mathewson c882a959 2011-11-02T23:14:24 Merge remote-tracking branch 'origin/patches-2.0'
Greg Hazel 7eb52eb8 2011-11-02T15:19:05 improve test to remove at least one buffer from src
Greg Hazel 90bd620f 2011-11-01T13:44:40 unit test for remove_buffer bug
Nick Mathewson 0cb70e33 2011-10-26T10:17:21 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 3c824bd3 2011-10-24T13:18:09 Update copyright dates to 2011.
Mansour Moufid c8953d1b 2011-10-14T17:16:03 Add argument checks to some memory functions in `event.c'. Add a zero check to the function `event_mm_malloc_', i.e. simply return NULL if the sz argument is zero. On failure, set errno to ENOMEM and return NULL. Add a zero check to the function `event_mm_calloc_', i.e. simply return NULL if either argument is zero. Also add an unsigned integer multiplication check, and if an integer overflow would occur, set errno to ENOMEM and return NULL. On failure, set errno to ENOMEM and return NULL. Add a NULL check to the function `event_mm_strdup_', i.e. set errno to EINVAL and return NULL. Also add an unsigned integer addition check, and if an integer overflow would occur, set errno to ENOMEM and return NULL. If a memory allocation error occurs, again set errno to ENOMEM and return NULL. Add unit tests to `test/regress_util.c'.
Nick Mathewson 128c8d6c 2011-10-19T22:44:33 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 5e42202d 2011-10-19T22:41:11 Style and comment tweaks for dns/leak* tests
Leonid Evdokimov f7841bfc 2011-10-18T17:49:40 Test for commit aff6ba1
Nick Mathewson fc1a2514 2011-10-19T22:20:15 Merge remote-tracking branch 'origin/patches-2.0'
Leonid Evdokimov 21a08d68 2011-10-19T22:38:37 Empty DNS reply with OK status is another way to say NODATA. Sometimes DNS reply has nothing but query section. It does not look like error, so it should be treated as NODATA with TTL=0 as soon as there is no SOA record to deduce negative TTL from.
Leonid Evdokimov d58c15ee 2011-10-19T22:36:12 Tests for 94fba5b and f72e8f6
Nick Mathewson c6bbbf1b 2011-10-06T18:02:22 Make evbuffer_file_segment_types adaptable Instead of having a file segment born as one type and stay that way forever, let them start out unmapped, but map themselves as needed if they need to get written out on a non-drains_to_fd evbuffer.
Nick Mathewson 83588777 2011-10-06T15:21:55 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: buffer.c test/regress_buffer.c
Nick Mathewson 706aa5f4 2011-10-06T15:11:50 Merge remote-tracking branch 'github/20_addfile_ssl' into patches-2.0
Nick Mathewson 084e68f3 2010-12-01T21:53:08 New EVLOOP_NO_EXIT_ON_EMPTY option to keep looping even when no events are pending This can be useful if you want to start an event loop and then add or remove events to it from another thread.
Nick Mathewson b3bc77b6 2011-10-03T12:54:35 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 2b768479 2011-10-03T12:45:36 Make write-checking fixes use tt_fail_perror
Mark Ellzey c3b62fd7 2011-07-12T13:05:36 Fixed compiler warnings for unchecked read/write calls.
Nick Mathewson 0ba0af9c 2011-09-29T09:30:04 Prefer mmap to sendfile unless a DRAINS_TO_FD flag is set. Allows add_file to work with SSL. The sendfile() implementation for evbuffer_add_file is potentially more efficient, but it has a problem: you can only use it to send bytes over a socket using sendfile(). If you are writing bytes via SSL_send() or via a filter, or if you need to be able to inspect your buffer, it doesn't work. As an easy fix, this patch disables the sendfile-based implementation of evbuffer_add_file on an evbuffer unless the user sets a new EVBUFFER_FLAG_DRAINS_TO_FD flag on that evbuffer, indicating that the evbuffer will not be inspected, but only written out via evbuffer_write(), evbuffer_write_atmost(), or drained with stuff like evbuffer_drain() or evbuffer_add_buffer(). This flag is off by default, except for evbuffers used for output on bufferevent_socket. In the future, it could be interesting to make a best-effort file segment implementation that tries to send via sendfile, but mmaps on demand. That's too much complexity for a stable release series, though.
Nick Mathewson 2179d735 2011-09-16T09:47:14 Merge remote-tracking branch 'origin/patches-2.0'
Sergey Avseyev 9ae061ac 2011-09-15T13:06:38 le-proxy and regress depend on openssl directly
Nick Mathewson 904254f9 2011-08-28T14:51:36 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 0ff2c5a9 2011-08-24T18:42:12 Have test-ratelim.c support IOCP
Nick Mathewson b260065a 2011-08-28T14:06:03 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 2f51dc03 2011-08-28T14:03:10 Cleanup on 7c11e51e1ab: fix strtol usage
Harlan Stenn 7c11e51e 2011-08-27T05:48:11 Clean up some problems identified by Coverity.
Nick Mathewson ec670c15 2011-08-17T22:08:06 Merge remote-tracking branch 'origin/patches-2.0' Conflict in buffer.c: the new file-segment logic conflicted with the solaris sendfile fix.
Dave Hart 04656ea8 2011-08-15T14:40:32 Try to fix 'make distcheck' errors when building out-of-tree
Joachim Bauch 26041a8e 2011-08-04T23:39:15 prevent nested multicast references, reworked locking
Joachim Bauch 9d7368ae 2011-06-09T23:33:58 support adding buffers to other buffers non-destructively
Nick Mathewson 18667d3c 2011-07-18T18:07:48 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson b3b425eb 2011-07-18T12:45:50 Give Makefile.am echo a non-null argument. msys likes this
Nick Mathewson 7d08a28c 2011-07-05T15:07:07 Merge remote-tracking branch 'github/21_end_of_buffer' Conflicts: include/event2/buffer.h
Nick Mathewson b07940ce 2011-07-05T14:58:35 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson caf695af 2011-07-05T14:55:09 Fix up test_evutil_snprintf
Nick Mathewson af6a05f7 2011-07-05T14:51:24 Merge remote-tracking branch 'github/20_size_fmt' into patches-2.0
Nick Mathewson 16bacbc5 2011-07-05T14:43:24 Fix a test-call accidentally in the last commit
Nick Mathewson cd74c4ec 2011-07-05T14:41:46 More abstraction in test.sh
Nick Mathewson 33124033 2011-06-14T15:15:43 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson b031adf1 2011-06-14T14:37:49 Don't break when building tests from git without python installed
Nir Soffer 7aeb2fd4 2011-06-13T16:35:28 Allow evbuffer_ptr to point to position 0 in an empty evbuffer
Nick Mathewson e6fe1da9 2011-06-06T21:03:35 Allow evbuffer_ptr_set to yield a point just after the end of the buffer.
Nir Soffer 8e261542 2011-06-07T03:15:51 Add failing test for evbuffer_search_range.
Nick Mathewson e9d095d4 2011-06-11T01:41:19 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: test/tinytest.c
Nick Mathewson 812d42e8 2011-06-11T01:26:54 Simplify windows commandname logic in tinytest Instead of using a dup'd pointer, let's use a static array, so we don't need to free it. This patch also makes tinytest build on non-windows again.
Ed Day 57def346 2011-06-11T00:49:24 Fix tinytest invocation from windows shell Original post: This post is in response to a posting last December on a Windows regression fork failure ([Libevent-users] Re: Libevent 2.0.10-stable is released by Dongsheng Song). I noticed the question was not answered and I recently experienced the same error myself when trying to run the Windows regression tests myself. I checked the return status from the CreateProcess call and found it was "file not found". This led me to look at the command-line I was using which was .\regress in a Visual Studio 2008 command prompt window. Windows could not find the file because it did not have the .exe extension on the end. The code that builds the command should be modified to ensure the extension is present.
Nick Mathewson 3203f88c 2011-06-08T17:18:03 Use the correct printf args when formatting size_t Based on a patch from Mansour Moufid
Nick Mathewson 264c7b96 2011-06-06T15:26:37 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 4461f1a0 2011-06-06T15:11:28 Fix incorrect results from evbuffer_search_eol(EOL_LF) Our evbuffer_strchr() function [which was only used for search_eol(EOL_LF) could give incorrect results if it found its answer in the first chunk but didn't start searching from the front of the chunk. Also, this patch adds unit tests for evbuffer_search_eol, particularly in those cases that evbuffer_readln() tests didn't exercise.
Nick Mathewson e40bafe7 2011-06-04T21:40:55 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: Makefile.am WIN32-Code/event2/event-config.h configure.in test/regress_ssl.c
Nick Mathewson bdfb8330 2011-06-03T17:06:17 Fix regress_ssl.c build on openbsd
Nick Mathewson 5926d601 2011-05-30T12:10:26 Merge branch '21_evport_improved'
Nick Mathewson 257651a4 2011-05-27T23:33:40 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson f47c15e7 2011-05-27T23:28:17 Make the new http_connect_fail_test use a multicast addr, not broadcast Turns out that FreeBSD does _not_ give a ENETUNREACH error when told to make a TCP socket to 255.255.255.255, but it is quite happy to do so for 239.10.20.30. So that's what we'll do. Found by Robert Ransom and Dave Hart.
Nick Mathewson e903db33 2011-05-27T15:31:40 Reenable main/many_events_slow_add for evport in 2.1 The various evport fixes should let it actually work again
Nick Mathewson 356720a2 2011-05-27T15:09:54 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson c11c6fcd 2011-05-27T14:57:55 Disable main/many_events_slow_add with evport backend In 2.0 and earlier, evport only reports up to 8 events at a time, which confuses this test badly.
Nick Mathewson 95f70166 2011-05-25T21:20:31 Merge remote-tracking branch 'origin/patches-2.0'
Sebastian Hahn d1b2d11b 2011-05-26T02:05:54 Always use evutil_snprintf, even if OS provides it In test/tinytest_local.h we can't redefine snprintf if the OS has it defined already.
Peter Rosin d41f3ea2 2011-05-25T19:54:44 Do not define WIN32 in Makefile.nmake
Nick Mathewson 9f560bfa 2011-05-25T19:50:56 Use "_WIN32", not WIN32: it's standard and we don't need to fake it This patch was automatically generated with perl. Based on a patch by Peter Rosin.
Nick Mathewson 0e95950e 2011-05-25T19:46:14 Merge remote-tracking branch 'origin/patches-2.0'
Peter Rosin 0de87fe6 2011-05-25T15:11:01 Use evutil_gettimeofday instead of relying on the system gettimeofday.
Peter Rosin 3d768dc9 2011-05-25T11:04:43 Fix winsock2.h #include issues with MSVC Define WIN32_LEAN_AND_MEAN, so that windows.h does not bring in winsock.h which in turn makes it impossible to #include <winsock2.h> (at least with MSVC)
Peter Rosin 8fa030c0 2011-05-26T00:03:38 Make sure TINYTEST_LOCAL is defined when building tinytest.c