Mike Perry
7bbdf71a82
Fix unittest failure in bug 1660.
...
We now record large times as abandoned, to prevent a filter step from
happening and skewing our results.
Also, issue a warn for a rare case that can happen for funky values of Xm or
too many abandoned circuits. Can happen (very rarely) during unit tests, but
should not be possble during live operation, due to network liveness filters
and discard logic.
2010-07-06 12:11:13 -07:00
Mike Perry
c6c8fbf852
Split the circuit timeout and close codepaths.
...
We need to record different statistics at point of timeout, vs the point
of forcible closing.
Also, give some better names to constants and state file variables
to indicate they are not dealing with timeouts, but abandoned circuits.
2010-06-15 20:04:42 -07:00
Mike Perry
e3d5b516c6
Address some issues with unit tests.
...
Histogram conversion causes accuracy loss, and there are some
boundary conditions when we hit 1000 circuits that cause
false negative test results.
2010-06-09 00:22:39 -07:00
Mike Perry
d9be6f3845
Fix CBT unit tests.
2010-05-12 15:31:22 -07:00
Nick Mathewson
da220157a9
Update copyright dates for files not in maint-0.2.1
2010-02-27 17:19:00 -05:00
Mike Perry
f4d6315afa
Remove misc unnecessary newlines found by new check.
2010-02-22 16:52:11 -08:00
Mike Perry
2258125e1a
Move CBT params into consensus.
2010-02-18 09:08:31 -08:00
Sebastian Hahn
01030a4db2
Another unit test for exit_policy_is_general_exit()
2010-02-09 09:10:03 +01:00
Sebastian Hahn
30b6fe6e9b
Another unit test for exit_policy_is_general_exit()
2010-02-04 00:06:56 +01:00
Sebastian Hahn
82a5fbafab
New unit test, testing for b0red's exit policy
2010-02-04 00:06:56 +01:00
Sebastian Hahn
b5b8d9e156
Another new test for exit_policy_is_general_exit()
2010-02-03 05:45:29 +01:00
Sebastian Hahn
c54e33e442
New testcase for exit_policy_is_general_exit
2010-02-03 05:44:05 +01:00
Karsten Loesing
56c2385157
Fix bug 1113.
...
Bridges do not use the default exit policy, but reject *:* by default.
2009-10-27 01:03:41 -07:00
Peter Palfrader
2f760c5461
Fix testsuite call.
...
tinytest_main() returns 0 on success, -1 on errors and 1 on test
failures. So test.c should check on !=0 instead of <0.
2009-10-10 18:58:54 -04:00
Nick Mathewson
fa693118b1
Split directory tests into their own module.
...
(Also, clean up some whitespace.)
2009-09-23 00:24:43 -04:00
Nick Mathewson
d9d0813809
Split general util and address tests into their own files.
2009-09-23 00:24:43 -04:00
Nick Mathewson
d2857d524c
Split container tests into their own module
2009-09-23 00:24:43 -04:00
Nick Mathewson
cea1225199
Split crypto tests into a separate module.
2009-09-23 00:24:43 -04:00
Nick Mathewson
da1aa66f70
Move testing code into new src/test directory.
2009-09-23 00:24:43 -04:00