summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
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
2014-07-16When making a tempdir for windows unit tests, avoid an extra backslashNick Mathewson
The extra \ is harmless, but mildly unpleasant. Fixes 12392; bugfix on 0.2.2.25-alpha where we started using GetTempDir(). Based on a patch by Gisle Vanem.
2014-07-16Fixed fgets_eagain unit test.cypherpunks
On a non-blocking pipe fgets sets EAGAIN when it encounters partial lines. No error is set on full lines or EOF. EOF is reached when the writing end of the pipe is closed. Partial lines and full lines are both returned by fgets, EOF results in NULL. Mention of this behaviour can be found in #1903 and #2045.
2014-07-09Change interface of router_descriptor_is_too_old().George Kadianakis
2014-06-25Change the interface of entry_is_live() to take a bitmap.George Kadianakis
2014-06-25Basic entry_is_live() unittest.George Kadianakis
2014-06-24Add the entrynodes.c unit tests.George Kadianakis
2014-06-20Thread support is now requiredNick Mathewson
Long ago we supported systems where there was no support for threads, or where the threading library was broken. We shouldn't have do that any more: on every OS that matters, threads exist, and the OS supports running threads across multiple CPUs. This resolves tickets 9495 and 12439. It's a prerequisite to making our workqueue code work better, since sensible workqueue implementations don't split across multiple processes.
2014-06-20Remove code for Windows CE supportNick Mathewson
As far as I know, nobody has used this in ages. It would be a pretty big surprise if it had worked. Closes ticket 11446.
2014-06-15Add some test descriptors to src/test/.George Kadianakis
2014-06-14Merge branch 'bug8746_v2_squashed'Nick Mathewson
Conflicts: src/common/include.am
2014-06-14refactor win/nix handling for test_spawn_background*()Nick Mathewson
Instead of having a #if ... for every function, just define TEST_CHILD to the right patch and EOL to the expected line terminator.
2014-06-14More unit tests for process spawningNick Mathewson
Try killing a running process; try noticing that a process has exited without checking its output; verify that waitpid_cb (when present) is set to NULL when you would expect it to be.
2014-05-22Merge remote-tracking branch 'andrea/bug11476'Nick Mathewson
2014-05-12Add --disable-mempools configure optionAndrea Shepard
2014-05-11fix whitespaceNick Mathewson
2014-05-11Quench clang's complaints with -Wshorten-64-to-32 when time_t is not long.dana koch
On OpenBSD 5.4, time_t is a 32-bit integer. These instances contain implicit treatment of long and time_t as comparable types, so explicitly cast to time_t.
2014-05-08One more 64->32Nick Mathewson
2014-05-08Fix numerous 64->32 errors in the unit testsNick Mathewson
Before the 11825 fix, these were all silently ignored.
2014-05-08Fix unearthed problems in unit testsNick Mathewson
2014-05-08Fix numerous type errors in the unit testsNick Mathewson
Remove tinytest casts that were suppressing them. Fix for #11825.
2014-05-08Fix test_util_max_mem on 32-bit CPUsNick Mathewson
2014-05-08More unit tests for #11648-related stuffNick Mathewson
These are actually tests for #311. It appears to me that we didn't fix #311 properly when we thought we did in 475eb5d6; instead, the real fix was 05eff35ac6d64b, a few minutes earlier.
2014-05-07Fix test_pick_circid on 32-bit platformsNick Mathewson
2014-05-07Basic tests for get_unique_circ_id_by_chan.Nick Mathewson
2014-05-07Quick-and-dirty test for packed_cell_is_destroyNick Mathewson
2014-05-06Remove a spurious variable.Nick Mathewson
2014-05-06Merge remote-tracking branch 'public/bug11750'Nick Mathewson
2014-05-06Merge branch 'bug11743_option_b'Nick Mathewson
2014-05-06Unit test for dirvote_create_microdescriptorNick Mathewson
2014-05-06Unit test for write_to_buf_zlibNick Mathewson
2014-05-06Add a siphash benchmark.Nick Mathewson
2014-05-01Fix test_config_write_to_data_subdirNick Mathewson
Bugfix on aa0eb2022342798fc78b2bde89d393f37c59fe78; bugfix not on any released Tor.
2014-05-01Merge remote-tracking branch 'public/valgrind_tests'Nick Mathewson
2014-04-29Fix leaks in tests related to setting options->DataDirectoryNick Mathewson
We pre-populate that value in main(), and we weren't freeing it before overriding it.