Patrick Pelletier
c9ad3af229
test filling up the hash table a bit
2013-02-25 20:13:01 -08:00
Patrick Pelletier
2078e9b46a
make sure caching works, and we don't leak memory
2013-02-14 20:26:38 -08:00
Patrick Pelletier
729651260d
a program to print out the error strings for winsock errors
2013-02-14 18:22:12 -08:00
Nick Mathewson
9709461457
Merge remote-tracking branch 'origin/patches-2.0'
2013-02-14 14:13:11 -05:00
Greg Hazel
b618204216
fix #73 and fix http_connection_fail_test to catch it
2013-02-14 09:54:56 -08:00
Nick Mathewson
96150dd0c6
Unit test for event_remove_timer with EV_PERSIST.
...
Patch from dcicppin on sourceforge.
2013-02-13 11:41:11 -05:00
Nick Mathewson
74e52db45d
Merge remote-tracking branch 'ppelleti/nmake-clean-exes'
2013-02-11 11:25:25 -05:00
Nick Mathewson
2863c83700
Avoid using $(top_srcdir) in TESTS.
...
Newer automakes don't like this.
2013-02-08 22:10:05 -05:00
Nick Mathewson
a55514eeed
Avoid using top_srcdir in TESTS-new automakes do not like this
2013-02-08 22:08:18 -05:00
Patrick Pelletier
974bfa0782
remove all exes on "make clean", not just regress.exe
2013-02-07 17:55:36 -08:00
Nick Mathewson
2ecd894725
Merge pull request #39 from azat/fix-http-for-ipv6
...
Fix ipv6 support for http. When URL contain domain, not IP address.
2013-02-04 13:49:08 -08:00
Nicholas Heath
0dda56a48e
Preliminary changes for Minix3.
2013-02-04 13:21:05 -05:00
Azat Khuzhin
9ec88bdf5f
Add regress test ipv6_for_domain.
...
Written for commit 71e709c7829275a594f767b27468b1b52e8b5bb9.
Fix ipv6 support for http. When URL contain domain, not IP address.
2013-01-27 02:17:02 +04:00
Nick Mathewson
c142069098
Fix a bug when running "make verify" out-of-tree
2012-11-19 09:07:13 -05:00
Nick Mathewson
173d782345
Fix a gcc warning in rtrim test
2012-11-18 01:40:33 -05:00
Nick Mathewson
f38e078868
Make ssl version check in unit tests work
2012-11-18 01:36:03 -05:00
Nick Mathewson
e3b2e0869e
Add an event_remove_timer() to remove timer on an event without deleting it
2012-11-16 16:43:17 -05:00
Nick Mathewson
5a9a014189
Fix a couple of compile warnings in the unit tests
2012-11-16 16:17:07 -05:00
Nick Mathewson
c6ff381270
Remove internal ws from multiline http headers correctly
...
According to RFC2616:
All linear white space, including folding, has the same semantics
as SP. A recipient MAY replace any linear white space with a single
SP before interpreting the field value or forwarding the message
downstream.
2012-11-16 11:38:53 -05:00
Nick Mathewson
ac42519769
Remove trailing tabs in HTTP headers as well.
2012-11-16 11:29:34 -05:00
Nick Mathewson
aa59d805f5
Clean up rtrim implementation
...
If I understand the C standard correctly, you can't actually point
at a position immediately _before_ the start of an object; only at the
position immediately after.
According to J.2 in the standard, in its big list of undefined behavior:
"The behavior is undefined in the following circumstances:
...
— Addition or subtraction of a pointer into, or just beyond, an
array object and an integer type produces a result that does not
point into, or just beyond, the same array object (6.5.6)."
So we've got to fix rtrim to not do that. Also, make it unit tested,
and give it an evutil_*_ name.
2012-11-16 11:13:29 -05:00
Nick Mathewson
efb644ed87
Merge remote-tracking branch 'origin/patches-2.0'
...
Conflicts:
test/rpcgen_wrapper.sh
2012-11-16 10:29:37 -05:00
Nick Mathewson
f3009e48c7
Make rpcgen_wrapper.sh work on systems without a "python2" binary
2012-11-16 10:28:19 -05:00
Nick Mathewson
4343edf3c6
Add a unit test in which an event is created with event_base_once() but never fires
2012-11-16 10:17:34 -05:00
Nick Mathewson
1f5a48d1d0
Merge remote-tracking branch 'origin/patches-2.0'
2012-11-15 11:45:12 -05:00
Nick Mathewson
ac009f9245
Warn when openssl version in unit test mismatches compiled version.
2012-11-15 11:43:45 -05:00
Nick Mathewson
c2f30863e2
Fix renegotiation test to work around openssl 1.0.1 bug
...
There's a bug in openssl 1.0.1 where TLS1.1 and TLS1.2 can't
renegotiate with themselves. When testing renegotiation with OpenSSL
>=1.0.1 and <1.0.1d, disable those protocols.
2012-11-15 11:43:45 -05:00
Nick Mathewson
1d9d5110a4
Use the same CFLAGS for openssl when building unit tests as with libevent
2012-11-15 11:41:36 -05:00
Nick Mathewson
64051b903a
Clean up unit test for evbuffer_file_segment_add_cleanup_cb a little
2012-11-06 17:42:54 -05:00
yangacer
e9f8febace
Add a new callback to get called on evbuffer_file_segment free
2012-11-06 17:42:54 -05:00
Nick Mathewson
56e48c1019
Fix a few mingw64 incompatibilities introduced since 2.0
2012-11-02 10:58:02 -04:00
Nick Mathewson
2e6a985003
Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation
...
Conflicts:
event.c
http.c
sample/event-read-fifo.c
test/regress_bufferevent.c
2012-11-01 18:12:07 -04:00
Nick Mathewson
94866c2763
Compile without warnings on mingw64
...
This is mostly a matter of catching cases where we were still
assuming that evutil_socket_t could be used as an int.
2012-11-01 17:56:06 -04:00
Ross Lagerwall
4b5f32a59e
Use python2 rather than python
...
python may refer to either python2 or python3 so rather by explicit by
using python2.
See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more
details.
2012-10-23 13:26:44 +01:00
Nick Mathewson
1e3123dae1
Fix handling of no-python case for nonrecursive make
2012-08-28 16:15:14 -04:00
Nick Mathewson
607a8ff9df
Be quiet when making regress.gen.[ch]
2012-08-28 16:14:38 -04:00
Nick Mathewson
371a1237d0
Make quiet build even quieter
2012-08-28 16:07:56 -04:00
Nick Mathewson
6cdfeebebc
Rename subordinate Makefile.ams to include.am
2012-08-28 16:01:14 -04:00
Nick Mathewson
7092f3b677
Switch to non-recursive makefiles
...
This approach should let Make work better, let libevent build faster
(especially when using a parallelized build), and basically make the
Makefiles easier to maintain.
See http://miller.emu.id.au/pmiller/books/rmch/ for more info on why
you'd want to do this.
This is due to an idea from Zack Weinberg; the patch is my own.
2012-08-28 15:58:18 -04:00
Nick Mathewson
07e132e3ad
Rename event_enable_lock_debuging() to ..._debugging()
...
Keep the misspelled version around for backward compatibility
Based on a patch by Diwaker Gupta.
2012-08-23 10:46:29 -04:00
Nick Mathewson
f1bd9388a9
Avoid test -e; older shs don't have one.
...
Reported by Paul Croome.
Report forwarded by Dave Hart.
2012-08-02 15:02:27 -04:00
Nick Mathewson
34c8f31650
Add deferred_cb_skew to list of timing-dependent tests
2012-08-02 12:36:05 -04:00
Nick Mathewson
403b0d6e02
Merge remote-tracking branch 'ppelleti/windows-ssl'
2012-07-31 12:03:48 -04:00
Nick Mathewson
9852107f37
Merge remote-tracking branch 'origin/patches-2.0'
...
Conflicts:
buffer.c
http.c
2012-07-26 10:43:13 -04:00
Nick Mathewson
a2006c0087
Move assignment outside tt_assert in ssl unit tests. Appeases coverity.
2012-07-26 10:37:47 -04:00
Nick Mathewson
b9e7329751
Add checks to various return values in unit tests. Found by coverity
2012-07-26 10:37:13 -04:00
Nick Mathewson
6355b2a4ca
Remove unused variable; spotted by coverity
2012-07-26 10:16:47 -04:00
Nick Mathewson
225344cfac
Fix a shadowed variable in addfile_test_readcb; found by coverity
2012-07-26 10:11:17 -04:00
Nick Mathewson
92817a11aa
Avoid memory leak in test_event_calloc unit test; found by coverity
2012-07-26 10:11:00 -04:00
Nick Mathewson
aa501e1a7e
Add checks for functions in test-ratelim.c; found by Coverity
2012-07-26 10:10:35 -04:00