summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-09-11One more whitespace fixNick Mathewson
2014-09-11Whitespace cleanups in test_utilNick Mathewson
2014-09-11Whitespace cleanups in transports/test_ptNick Mathewson
2014-09-11Use tor_malloc_zero() in pt testsNick Mathewson
Fixes for PT tests merged with 8402; patch from Yawning.
2014-09-11Merge remote-tracking branch 'public/bug13104_025'Nick Mathewson
2014-09-11Fix "comparison is always false" warnings in new test_util_di_opsNick Mathewson
Having a constant zero means that unsigned < 0 is always false.
2014-09-11Merge remote-tracking branch 'public/bug13104_025'Nick Mathewson
2014-09-11C90 compliance for #13104 fixesNick Mathewson
2014-09-11Avoid an overflow on negation in format_helper_exit_statusNick Mathewson
Part of 13104; patch from teor.
2014-09-10Avoid divide by zero and NaNs in scale_array_elements_to_u64Nick Mathewson
Patch from teor; part of 13104
2014-09-10Extra tests for tor_memeq and memcmpNick Mathewson
(Patch from teor; part of 13104)
2014-09-10Avoid overflows and underflows in sscanf and friendsNick Mathewson
(Patch from teor on 13104)
2014-09-10Merge remote-tracking branch 'yawning/bug_8402'Nick Mathewson
2014-09-09Add unittests for finding the third quartile of a set.George Kadianakis
2014-09-09Remove support for naming directory authoritiesSebastian Hahn
This implements the meat of #12899. This commit should simply remove the parts of Tor dirauths used to check whether a relay was supposed to be named or not, it doesn't yet convert to a new mechanism for reject/invalid/baddir/badexiting relays.
2014-09-03Fix some 'dereference-before-null-check' warnings in test_circuitlist.cNick Mathewson
Found by Coverity Scan. [CID 1234704, 1234705, 1234706]
2014-09-03Fix the leaks that valgrind found in the new routerset tests.Nick Mathewson
(We have a tests-shouldn't-leak policy so that we won't accidentally ignore true-positives.)
2014-09-02Fix more (void*)11 warnings in the testsNick Mathewson
2014-09-02Use real pointers in unit tests, not (void*)101 etcNick Mathewson
The clangalyzer hates (void*)101 etc
2014-09-02Don't include a backtrace test for dereferencing 0 under analyzersNick Mathewson
They hate this.
2014-09-02Add an assertion to read_file_to_str_until_eofNick Mathewson
The clangalyzer doesn't believe our math here. I'm pretty sure our math is right. Also, add some unit tests.
2014-08-29Fix some coverity warnings in new routerset testsNick Mathewson
2014-08-29Introduce full coverage tests for module routerset.c.dana koch
This is using the paradigm introduced for test_status.c.
2014-08-27Initialize crash handler in unit testsNick Mathewson
This way, we don't get locking failures when we hit an assertion in the unit tests. Also, we might find out about unit test bugs from folks who can't do gdb.
2014-08-26Merge remote-tracking branch 'public/bug10163'Nick Mathewson
2014-08-24Use the ARRAY_LENGTH macro more consistently.Nick Mathewson
2014-08-21Fix memory leaks in test_entrynodes.cNick Mathewson
[Coverity CID 1232087 and 1232088]
2014-08-20Merge branch 'bug12205_take2_squashed'Nick Mathewson
2014-08-20Whitespace fixesNick Mathewson
2014-08-20Small cleanups to test_entry_is_time_to_retryNick Mathewson
2014-08-20Unit testing entry_is_time_to_retry().rl1987
2014-08-20Merge branch 'bug10116_squashed'Nick Mathewson
2014-08-20fix remaining compilation problemsNick Mathewson
2014-08-20Fix entrynodes test fails because of outdated test vectors.George Kadianakis
2014-08-15Remove implementation code for all pre-13 consensus methods.Nick Mathewson
Also remove a test for the way that we generated parameter votes before consensus method 12.
2014-08-15Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-08-15Remove stale printfs from buffer/zlib_fin_at_chunk_end testNick Mathewson
These got committed by mistake.
2014-08-13Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-08-13Apply an MSVC compilation fix from Gisle VanemNick Mathewson
This fixes a double-define introduced in 28538069b2f1909a7600ec6d
2014-08-13Apply coccinelle script to replace malloc(a*b)->calloc(a,b)Nick Mathewson
2014-07-28Cast long long arguments to (int) for tt_int_op()Peter Palfrader
2014-07-21Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-07-21Fix warning on building with buffereventsSathyanarayanan Gunasekaran
Fixes #11578
2014-07-16Move test_descriptors.txt to an include fileNick Mathewson
Making the text file work out-of-tree didn't work on windows. Maybe we can get it working that way later.
2014-07-16Fix tests when building out-of-treeNick Mathewson
(This was too hard. Silly autoconf.)
2014-07-16Fix wide lines, make entry_is_live() non-inlineNick Mathewson
2014-07-16Merge remote-tracking branch 'asn/bug12202'Nick Mathewson
2014-07-16Merge remote-tracking branch 'asn/bug12207_second_draft'Nick Mathewson
2014-07-16Add a tor_ftruncate to replace ftruncate.Nick Mathewson
(Windows doesn't have ftruncate, and some ftruncates do not move the file pointer to the start of the file.)
2014-07-16Add an option to overwrite logsArlo Breault
* Issue #5583