test


Log

Author Commit Date CI Message
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
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
Peter Rosin fe93022a 2011-05-25T10:58:48 unistd.h and sys/time.h might not exist.
Nick Mathewson 9155b095 2011-05-25T16:52:50 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson 06a714ff 2011-05-25T16:51:25 Fix new warnings from GCC 4.6
Nick Mathewson 3ec46c0c 2011-05-23T01:44:05 Merge remote-tracking branch 'origin/patches-2.0'
Kevin Ko 57ddda78 2011-05-23T01:40:05 Test case for 0848814ac49616 "I'm not sure if you'll like my use of the limited broadcast address for simulating an ENETUNREACH error with a TCP connection, but it's the best that I could think of. Basically, we want to trigger a non-EINPROGRESS error in evutil_socket_connect() immediately at the connect() in order to bring about the assertion in the evhttp_connection_fail() error handling code."
Nick Mathewson 6b23518d 2011-05-06T11:06:11 Merge remote-tracking branch 'origin/patches-2.0'
Sebastian Hahn 5786b91e 2011-05-05T18:02:42 Fix a compile warning with zlib 1.2.4 and 1.2.5 I took this fix from Tor (commit 1a52e39c22d5, author Nick Mathewson, Copyright (c) 2007-2011, The Tor Project, Inc.) and adapted it slightly for libevent.
Nick Mathewson 7889c43e 2011-05-04T16:23:02 Merge remote-tracking branch 'origin/patches-2.0'
Peter Rosin 7b819f2d 2011-05-04T16:37:58 Libtool brings in the dependencies of libevent_openssl.la automatically
Peter Rosin 274dd036 2011-05-04T16:34:28 libssl depends on libcrypto, not the other way around.
Nick Mathewson 96107974 2011-05-03T14:29:44 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson d11e9e0f 2011-05-03T14:22:48 Oops; that new unit test breaks for epoll. Fix it.
Nick Mathewson 28317a08 2011-05-03T13:54:57 Fix a warn-and-fail bug in kqueue by providing kevent() room to report errors Apparently, kevent fails gracefully if there is not enough space in its output events array to report every _event_... but it just dies and returns -1 if there is not enough space to report every _error_. There are a couple of possible fixes here. One would to handle -1 returns from kevent better by re-growing the array and retrying... but that seems a little error prone. Instead, I'm just going to say that the events array must be large enough to handle all the errors. This patch also adds a unit test designed to make sure that our many-events-out code works even if not all the events are added at once.
Nick Mathewson cea45590 2011-04-24T22:56:16 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson ea0d019b 2011-04-23T02:35:17 Use AM_CONDITIONAL, not AC_SUBST, to tell automake to build regress For some reason, this makes mingw much happier about building regress.exe by default. No, I'm afraid I don't know why.
Nick Mathewson 18f24ef4 2011-04-23T02:31:59 Merge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson dd68cce4 2011-04-23T01:47:43 Add missing header for regress_http compilation on win32
Nick Mathewson 614a1712 2011-04-22T23:46:25 Merge remote-tracking branch 'origin/patches-2.0' Conflicts: evthread.c
Sebastian Hahn 646f9feb 2011-04-23T02:22:08 Zero a struct sockaddr_in before using it Found by Dave Heart
Sebastian Hahn 93a1abb3 2011-04-11T18:26:48 Check return value of evbuffer_add_cb in tests Caught by clang's static analyzer
Sebastian Hahn 48c44a6d 2011-04-11T17:48:23 Refactor test_getaddrinfo_async_cancel_stress() Turns out it didn't need an event base set up. Spotted by clang's static anaylzer
Sebastian Hahn b693c324 2011-04-11T17:32:03 Actually send NULL request in http_bad_request_test Issue caught by clang's static analyzer
Sebastian Hahn 3819b62c 2011-04-11T17:23:08 Add a forgotten return value check in the unit tests Spotted by clang's static analyzer
Nick Mathewson 975eacad 2011-02-23T11:25:09 Merge remote branch 'origin/patches-2.0'
Sebastian Hahn 3f79a3a0 2011-02-23T09:19:08 Continue AM_CFLAGS to AM_CPPFLAGS correction 9c469db300e1b270a93c6b04c1709ac0f7751136 had started with the conversion but left out another instance of incorrectly used AM_CFLAGS. Dave Hart provided the suggestion for this fix.
Nick Mathewson e2e3c322 2011-02-22T18:55:05 Merge remote branch 'origin/patches-2.0'
Nick Mathewson 5dc200b7 2011-02-22T18:53:55 Merge branch '20_uri_nonconformant' into patches-2.0
Nick Mathewson a11c30b5 2011-02-22T17:41:27 Merge remote branch 'origin/patches-2.0' This branch is the big one that merges all the ntp folks' changes Conflicts: configure.in
Nick Mathewson 15b2408c 2011-02-22T16:13:49 Use $(), not @@, for LIBEVENT_GC_SECTIONS
Nick Mathewson 039b9bd0 2011-02-22T00:31:56 Use %s with printf in test.sh
Dave Hart 9c469db3 2011-02-13T02:27:42 Correct an AM_CFLAGS to an AM_CPPFLAGS in test/Makefile.am
Dave Hart 49e9bb7f 2011-02-13T02:05:04 Add configure options to disable installation, regression tests The main reason for disabling installation is if you're building libevent as a subpackage for embedding: you want to have your main package's "make all" build libevent, but you don't want your main package's "make install" to install libevent.
Dave Hart 0965c563 2011-02-13T01:50:40 Use the gcc -ffunction-segments feature to allow gc when linking with static libevent
Harlan Stenn 05a2c22f 2011-02-13T01:30:37 Make test-eof fail with a timeout if we never get an eof. Previously, it would just wait forever.
Harlan Stenn bbf55150 2011-02-13T01:25:33 Include util-internal.h as needed to build on platforms with no sockaddr_storage
Harlan Stenn 10c834c4 2011-02-13T01:22:25 Include arpa/inet.h as needed on HPUX
Nick Mathewson 95060b54 2011-02-13T00:41:22 Make URI parser able to tolerate nonconformant URIs. If the EVHTTP_URI_NONCONFORMANT flag is passed in (which it is when parsing URIs we get over the wire), then we relax our checks a lot. Specifically, we do nothing to check for correct characters in the path, query, and fragment parts of such a URI. We could do much more here: we could relax our hostname requirements, deal with spaces differently/better, trap some errors but not others, etc. But this should solve the worst user-agent compatibility issues for now; the other issues can wait for a later release.
Nick Mathewson 86f02d75 2011-02-01T02:12:46 Merge remote branch 'origin/patches-2.0'
Dave Hart b4f89b60 2011-02-01T01:15:48 Fix test.sh output on solaris Solaris echo -n doesn't omit newlines, but printf omits newlines in more places.
Nick Mathewson 22845886 2011-01-31T16:45:23 Merge remote branch 'origin/patches-2.0'
Nick Mathewson 6092f126 2011-01-31T16:37:27 Fix http unit test on non-windows platforms without getaddrinfo
Nick Mathewson 0aad0143 2010-12-20T18:40:03 Refactor addfile tests; add test for big files and for offsets
Nick Mathewson e72afae0 2010-10-21T19:45:49 Add evbuffer_add_file_segment() so one fd can be used efficiently in more than one evbuffer_add_file at a time
Nick Mathewson 22f4af65 2010-12-09T11:43:12 Remove end-of-line whitespace
Constantine Verutin d23839fc 2010-12-07T11:43:52 Reject overlong http requests early when Expect:100-continue is set
Evan Jones c0bf63ce 2010-12-02T14:13:33 tests: Use relative includes ("") instead of system includes (<>)
Evan Jones 4f332091 2010-12-02T14:09:52 tests: Use new event2 headers instead of old compatibility headers.
Christopher Davis fa9305f8 2010-11-29T18:25:04 Preliminary support for Continue expectation in evhttp.