Nick Mathewson
386279d051
Add a test for event_pending; especially the timeout part.
...
svn:r1214
2009-04-21 18:47:02 +00:00
Nick Mathewson
ff1f429510
Unit tests for event_base_once.
...
svn:r1213
2009-04-21 18:46:43 +00:00
Nick Mathewson
ea664bf29a
Refactor test wrappers to divide legacy items from useful stuff.
...
svn:r1212
2009-04-21 18:46:30 +00:00
Nick Mathewson
122e934e92
Add unit tests for version methods and feature-based backend selection
...
svn:r1211
2009-04-21 18:46:11 +00:00
Nick Mathewson
7cf8a7b0e0
Call the main testcases "main", not "legacy".
...
svn:r1210
2009-04-21 18:45:59 +00:00
Nick Mathewson
a8f6d961eb
Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h
...
svn:r1183
2009-04-17 06:56:09 +00:00
Nick Mathewson
68d0139f19
Refactor the zlib and pthreads tests to appear in the regular tinytest tree structure.
...
svn:r1141
2009-04-07 04:49:25 +00:00
Nick Mathewson
71604d85be
Remove some needless includes
...
svn:r1104
2009-02-10 19:38:25 +00:00
Nick Mathewson
f9e4e0f98e
Move bufferevent tests to regress_bufferevent.c file.
...
svn:r1101
2009-02-03 18:28:53 +00:00
Nick Mathewson
ea4b8724c0
checkpoint work on big bufferevent refactoring
...
svn:r1095
2009-02-02 19:22:13 +00:00
Nick Mathewson
a30c9eb1ac
Move evbuffer tests into their own file.
...
svn:r1087
2009-02-01 01:07:12 +00:00
Nick Mathewson
12e8db5b23
Convert evtag test.
...
svn:r1085
2009-01-31 18:36:47 +00:00
Nick Mathewson
5831d11a42
Move rpc_test to regress_rpc.
...
svn:r1084
2009-01-31 18:36:37 +00:00
Nick Mathewson
fa6ae16992
Convert RPC suite. There are still some places it can exit(1), but those always run forked, so no big deal.
...
svn:r1083
2009-01-31 18:36:24 +00:00
Nick Mathewson
eac75f91e4
Port DNS tests.
...
svn:r1081
2009-01-31 07:32:14 +00:00
Nick Mathewson
153093ecc3
Port the HTTP unit tests. Most are still legacy (since they use test_ok so much), but at least they no longer exit(1) on failure
...
svn:r1076
2009-01-30 17:44:13 +00:00
Nick Mathewson
241690b230
Move util tests to regress_util.c
...
svn:r1075
2009-01-30 17:43:59 +00:00
Nick Mathewson
4e9470b481
Convert test_evutil_strtoll to new framework.
...
svn:r1074
2009-01-30 17:43:48 +00:00
Nick Mathewson
a8203b3490
Refactor unit tests using my spiffy new "tinytest" framework.
...
The big win here is that we can get process-level isolation.
This has been tested to work okay on at least Linux and Win32. Only
the tests in regress.c have been converted wrapped in the new wrapper
functions; the others are still on the old system.
svn:r1073
2009-01-29 23:19:57 +00:00
Nick Mathewson
cc7a53c152
fix signed/unsigned warning in unit tests. can we just use "char*" on all new APIs? this void/unsigned char*/char* business is awful.
...
svn:r1071
2009-01-29 18:15:36 +00:00
Nick Mathewson
7dd362b158
Have util-internal.h define socklen_t if we need it, and include it appropriately. This fixes win32 compilation.
...
svn:r1070
2009-01-29 15:09:24 +00:00
Niels Provos
66b2a7ffb7
test evbuffer_add_reference
...
svn:r1068
2009-01-29 03:20:40 +00:00
Nick Mathewson
b85b710cf5
Update copyright statements to reflect the facts that:
...
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
disclaim some rights is sheer cargo-cultism.
svn:r1065
2009-01-27 22:34:36 +00:00
Nick Mathewson
8889a77039
Replace all use of config.h with event-config.h.
...
svn:r1064
2009-01-27 22:30:46 +00:00
Nick Mathewson
9993137cbb
Remove all trailing whitespace in all the source files.
...
svn:r1063
2009-01-27 21:10:31 +00:00
Niels Provos
3065389973
make it so that test_persistent_timeout can call loopexit only once; reported by Alexander Drozdov
...
svn:r1062
2009-01-27 16:35:28 +00:00
Nick Mathewson
f20902a290
Remove evperiodic_assign and its related parts: its functionality is subsumed by EV_PERSIST timeouts.
...
svn:r1040
2009-01-22 17:56:15 +00:00
Nick Mathewson
dc1526e0da
Fix warnings on compile: make static functions static.
...
svn:r1037
2009-01-22 17:48:16 +00:00
Niels Provos
fe72c885d9
fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov
...
svn:r1035
2009-01-22 06:23:14 +00:00
Niels Provos
a077fb8c09
rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku
...
svn:r1033
2009-01-22 02:47:35 +00:00
Niels Provos
56ea4687a5
Change the semantics of timeouts in conjunction with EV_PERSIST; timeouts in that case will now repeat until deleted.
...
svn:r1032
2009-01-22 02:33:38 +00:00
Nick Mathewson
169321c9e6
Rename four internal headers to follow the -internal.h convention.
...
svn:r1000
2009-01-13 20:26:37 +00:00
Nick Mathewson
0d9d5cfe22
New functions in evutil to clone inet_pton and inet_ntop, with tests.
...
Adapted from Tor code.
svn:r983
2009-01-02 20:46:12 +00:00
Niels Provos
eed234519c
forgot to re-enable dns tests
...
svn:r978
2008-12-25 16:20:45 +00:00
Niels Provos
d776f8462b
deprecate the usage of signal_{add,del,set} and name it evsignal_{add,del,set} instead; move the old definitions to compat
...
svn:r973
2008-12-23 22:23:37 +00:00
Niels Provos
02b2b4d1be
Restructure the event backends so that they do not need to keep track of events themselves, as a side effect multiple events can use the same fd or signal.
...
svn:r972
2008-12-23 16:37:01 +00:00
Niels Provos
ebcf5efcfe
fix memory leaks in the regression tools; add another close detection test that validates that there are no dangling connections on the server
...
svn:r969
2008-12-19 22:42:51 +00:00
Niels Provos
3b24f4eedc
another fix; we also need to remove the signal event from the queue
...
svn:r918
2008-07-25 00:48:30 +00:00
Niels Provos
a4e2f52a44
add a signal and free the base for reinit test
...
svn:r915
2008-07-20 23:31:28 +00:00
Niels Provos
f7e61870e9
support multiple events listening on the same signal; make signals regular events that go on the same event queue
...
svn:r901
2008-07-11 15:49:04 +00:00
Niels Provos
5512be0176
fix a bug where deleting signals with kqueue would delete subsequent adds
...
svn:r899
2008-07-11 15:15:04 +00:00
Niels Provos
2f8708db3f
ifdef out a whole bunch of sections; gettimeofday to evutil_gettimeofday
...
svn:r862
2008-06-24 18:04:41 +00:00
Niels Provos
99a1063e73
support 64-bit integers in rpc structs
...
svn:r856
2008-06-21 02:21:25 +00:00
Niels Provos
9586a1cbb0
fix an evbuffer corruption when adding an empty evbuffer; from Scott Lamb
...
svn:r845
2008-06-01 16:21:24 +00:00
Nick Mathewson
39400e68b6
Patch from Valery Kholodkov: support for edge-triggered events with epoll and kqueue. Changed from original patch: made test into a regression test, with explicit success/failure for edge-triggered and non-edge-triggered cases. Closes SF request 1968284.
...
svn:r840
2008-05-30 16:56:34 +00:00
Niels Provos
2deb3ce061
simplify handling of environment variables for disabling backends;
...
make event_get_supported_methods obey environment variables; this
fixes make verify; problem reported by Scott Lamb.
svn:r838
2008-05-29 01:39:43 +00:00
Niels Provos
134344b79e
Fix use of freed memory in event_reinit; pointed out by Peter Postma
...
svn:r834
2008-05-16 01:55:40 +00:00
Nick Mathewson
7be8f13b95
r19736@catbus: nickm | 2008-05-14 11:50:49 -0400
...
Add casts to make some printf formats in regress.c happier.
svn:r821
2008-05-14 15:56:17 +00:00
Nick Mathewson
0cafdeb6f5
Tweaks to make unit tests fail less badly on mingw on trunk.
...
svn:r814
2008-05-12 17:16:47 +00:00
Nick Mathewson
c6da86ffcb
r19709@catbus: nickm | 2008-05-12 12:42:48 -0400
...
Possible fix for [1960723] snprintf and vsnprintf return values are wrong on win32
svn:r813
2008-05-12 16:44:24 +00:00