aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
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.
2014-04-29Fix memory leaks in test_status.cNick Mathewson
2014-04-29Fix leaks in dir voting testsNick Mathewson
2014-04-29Make --disable-buf-freelists build and pass unit testsAndrea Shepard
2014-04-27Make the python test scripts work on python3Nick Mathewson
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.
2014-04-26Fix leaks in test_oom.cNick Mathewson
2014-04-26Fix leaks in test_dir_formatsNick Mathewson
2014-04-26Fix numerous leaks in test_pt.cNick Mathewson
I didn't find a managed_proxy_free() function any place; shouldn't there be one?
2014-04-26test_cntev_append_cell_stats now no longer leaksNick Mathewson
2014-04-26Fix leaks in test_exit_policy_dump_to_stringNick Mathewson
2014-04-26Memory leaks in test_config_addressmapNick Mathewson
2014-04-26Fix a leak in test_buffer_allocation_trackingNick Mathewson
2014-04-26Fix memory leak in unittest helper function.Nick Mathewson
2014-04-26Fix memory leak in test_util_asprintfNick Mathewson
2014-04-26Fix memory leaks in test_cntev_append_cell_statsNick Mathewson
2014-04-26fix uninitialized memory reads from test_geoip_with_pt. Found with valgrindNick Mathewson
2014-04-26Fix memory leak in test_geoipNick Mathewson
2014-04-26Fix memory leak in test_onion_queuesNick Mathewson
2014-04-26Fix memory leaks in test_circuit_timeoutNick Mathewson
Found with valgrind.
2014-04-25fix memory leak in dump_exit_policy_to_string testsNick Mathewson
2014-04-25Merge branch 'scanbuild_fixes'Nick Mathewson
2014-04-24Merge branch 'bug11396_v2_squashed'Nick Mathewson
Conflicts: src/or/main.c
2014-04-24get_total_system_memory(): see how much RAM we haveNick Mathewson
2014-04-19scan-build: avoid undef behaior in tor_inet_ptonNick Mathewson
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.
2014-04-19scan-build: Fix harmless sizeof(ptr) in test_oom.cNick Mathewson
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.
2014-04-18scan-build: fix a crash-on-fail possibility in test_policy.cNick Mathewson