aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
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
2014-04-17Fix uninitialized-ram free in unit testsNick Mathewson
Fix on fb595922; bug not in any released Tor. Found with --enable-expensive-hardening.
2014-04-15Fix compiler warning on test_status.cNick Mathewson
2014-04-15Uplift status.c unit test coverage with new test cases and macros.dana koch
A new set of unit test cases are provided, as well as introducing an alternative paradigm and macros to support it. Primarily, each test case is given its own namespace, in order to isolate tests from each other. We do this by in the usual fashion, by appending module and submodule names to our symbols. New macros assist by reducing friction for this and other tasks, like overriding a function in the global namespace with one in the current namespace, or declaring integer variables to assist tracking how many times a mock has been called. A set of tests for a small-scale module has been included in this commit, in order to highlight how the paradigm can be used. This suite gives 100% coverage to status.c in test execution.
2014-04-12Merge remote-tracking branch 'asn/bug11486'Nick Mathewson
2014-04-11Add another unit test for parse_bridge_line().George Kadianakis
2014-04-09Fix a dumb C bug in the unit tests for 9841Nick Mathewson
Fixes bug 11460; bug only affects unit tests and is not in any released version of Tor.
2014-04-09Merge remote-tracking branch 'public/bug10431'Nick Mathewson
2014-04-08Move existing policy tests from test.c to new test_policy.cNick Mathewson
2014-04-08Remove unused extern decl for a nonexistent test suiteNick Mathewson
2014-04-08Merge branch 'bug7952_final'Nick Mathewson
Conflicts: src/test/include.am src/test/test.c