aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
* Thread support is now requiredNick Mathewson2014-06-20
| | | | | | | | | | | 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.
* Remove code for Windows CE supportNick Mathewson2014-06-20
| | | | | | | 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.
* Merge branch 'bug8746_v2_squashed'Nick Mathewson2014-06-14
|\ | | | | | | | | Conflicts: src/common/include.am
| * refactor win/nix handling for test_spawn_background*()Nick Mathewson2014-06-14
| | | | | | | | | | Instead of having a #if ... for every function, just define TEST_CHILD to the right patch and EOL to the expected line terminator.
| * More unit tests for process spawningNick Mathewson2014-06-14
| | | | | | | | | | | | 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.
* | Merge remote-tracking branch 'andrea/bug11476'Nick Mathewson2014-05-22
|\ \
| * | Add --disable-mempools configure optionAndrea Shepard2014-05-12
| | |
* | | fix whitespaceNick Mathewson2014-05-11
| | |
* | | Quench clang's complaints with -Wshorten-64-to-32 when time_t is not long.dana koch2014-05-11
| | | | | | | | | | | | | | | | | | 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.
* | | One more 64->32Nick Mathewson2014-05-08
| | |
* | | Fix numerous 64->32 errors in the unit testsNick Mathewson2014-05-08
| | | | | | | | | | | | Before the 11825 fix, these were all silently ignored.
* | | Fix unearthed problems in unit testsNick Mathewson2014-05-08
| | |
* | | Fix numerous type errors in the unit testsNick Mathewson2014-05-08
| | | | | | | | | | | | | | | | | | Remove tinytest casts that were suppressing them. Fix for #11825.
* | | Fix test_util_max_mem on 32-bit CPUsNick Mathewson2014-05-08
| | |
* | | More unit tests for #11648-related stuffNick Mathewson2014-05-08
| | | | | | | | | | | | | | | | | | 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.
* | | Fix test_pick_circid on 32-bit platformsNick Mathewson2014-05-07
| | |
* | | Basic tests for get_unique_circ_id_by_chan.Nick Mathewson2014-05-07
| | |
* | | Quick-and-dirty test for packed_cell_is_destroyNick Mathewson2014-05-07
| | |
* | | Remove a spurious variable.Nick Mathewson2014-05-06
| | |
* | | Merge remote-tracking branch 'public/bug11750'Nick Mathewson2014-05-06
|\ \ \
| * | | Add a siphash benchmark.Nick Mathewson2014-05-06
| | | |
* | | | Merge branch 'bug11743_option_b'Nick Mathewson2014-05-06
|\ \ \ \
| * | | | Unit test for dirvote_create_microdescriptorNick Mathewson2014-05-06
| |/ / /
* / / / Unit test for write_to_buf_zlibNick Mathewson2014-05-06
|/ / /
* | | Fix test_config_write_to_data_subdirNick Mathewson2014-05-01
| | | | | | | | | | | | | | | Bugfix on aa0eb2022342798fc78b2bde89d393f37c59fe78; bugfix not on any released Tor.
* | | Merge remote-tracking branch 'public/valgrind_tests'Nick Mathewson2014-05-01
|\ \ \ | |/ / |/| |
| * | Fix leaks in tests related to setting options->DataDirectoryNick Mathewson2014-04-29
| | | | | | | | | | | | | | | We pre-populate that value in main(), and we weren't freeing it before overriding it.
| * | Fix memory leaks in test_status.cNick Mathewson2014-04-29
| | |
| * | Fix leaks in dir voting testsNick Mathewson2014-04-29
| | |
| * | Fix leaks in test_oom.cNick Mathewson2014-04-26
| | |
| * | Fix leaks in test_dir_formatsNick Mathewson2014-04-26
| | |
| * | Fix numerous leaks in test_pt.cNick Mathewson2014-04-26
| | | | | | | | | | | | | | | I didn't find a managed_proxy_free() function any place; shouldn't there be one?
| * | test_cntev_append_cell_stats now no longer leaksNick Mathewson2014-04-26
| | |
| * | Fix leaks in test_exit_policy_dump_to_stringNick Mathewson2014-04-26
| | |
| * | Memory leaks in test_config_addressmapNick Mathewson2014-04-26
| | |
| * | Fix a leak in test_buffer_allocation_trackingNick Mathewson2014-04-26
| | |
| * | Fix memory leak in unittest helper function.Nick Mathewson2014-04-26
| | |
| * | Fix memory leak in test_util_asprintfNick Mathewson2014-04-26
| | |
| * | Fix memory leaks in test_cntev_append_cell_statsNick Mathewson2014-04-26
| | |
| * | fix uninitialized memory reads from test_geoip_with_pt. Found with valgrindNick Mathewson2014-04-26
| | |
| * | Fix memory leak in test_geoipNick Mathewson2014-04-26
| | |
| * | Fix memory leak in test_onion_queuesNick Mathewson2014-04-26
| | |
| * | Fix memory leaks in test_circuit_timeoutNick Mathewson2014-04-26
| | | | | | | | | | | | Found with valgrind.
* | | Make --disable-buf-freelists build and pass unit testsAndrea Shepard2014-04-29
| |/ |/|
* | Make the python test scripts work on python3Nick Mathewson2014-04-27
|/ | | | | | | The python scripts invoked by 'make check' didn't work on python3 before. That was a problem on systems where 'python' is python3. Fixes bug 11608; bugfix on 0.2.5.2-alpha.
* fix memory leak in dump_exit_policy_to_string testsNick Mathewson2014-04-25
|
* Merge branch 'scanbuild_fixes'Nick Mathewson2014-04-25
|\
| * scan-build: avoid undef behaior in tor_inet_ptonNick Mathewson2014-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | If we had an address of the form "1.2.3.4" and we tried to pass it to tor_inet_pton with AF_INET6, it was possible for our 'eow' pointer to briefly move backwards to the point before the start of the string, before we moved it right back to the start of the string. C doesn't allow that, and though we haven't yet hit a compiler that decided to nuke us in response, it's best to fix. So, be more explicit about requiring there to be a : before any IPv4 address part of the IPv6 address. We would have rejected addresses without a : for not being IPv6 later on anyway.
| * scan-build: Fix harmless sizeof(ptr) in test_oom.cNick Mathewson2014-04-19
| | | | | | | | | | We meant to using random bytes to fill a buffer, up to 3000 at a time. Instead we were taking them sizeof(void*) at a time.
| * scan-build: fix a crash-on-fail possibility in test_policy.cNick Mathewson2014-04-18
| |