summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2016-03-28One more test that didnt pass on windows. See #18665.Nick Mathewson
2016-03-26Whitespace fixesNick Mathewson
2016-03-25Disable failing broken time format case for windows.Nick Mathewson
2016-03-24try to fix a test failure for sizeof(time_t)==4.Nick Mathewson
2016-03-24Merge branch 'timegm_overflow_squashed'Nick Mathewson
2016-03-24Add a missing UL on a long in a unit testteor (Tim Wilson-Brown)
2016-03-24Add unit tests with dates from 2035 to 2039teor (Tim Wilson-Brown)
Platforms with 32-bit time_t sometimes give different results. They don't always indicate failure on overflow, #18480 should fix these.
2016-03-22Try to fix an intermittent test failure on openbsd.Nick Mathewson
2016-03-22Never use sprintf. tor_snprintf instead. Bug in tests, not in any released tor.Nick Mathewson
2016-03-21Merge remote-tracking branch 'arma/ticket18332-try3'Nick Mathewson
2016-03-21Merge branch 'bug18570_027'Nick Mathewson
2016-03-21Add new channel/queue_incoming unit tests; modify channel unit tests for new ↵Andrea Shepard
clarified handling of alloc/free responsibility for queued incoming cells
2016-03-21test_options.c: assert that TransProxyType is testedSteven Chamberlain
If a new platform defines USE_TRANSPARENT, ensure that a test runs for its TransProxyType.
2016-03-17test_options.c: NULL a pointer after free #18447Steven Chamberlain
tdata will be double-freed if none of linux, __FreeBSD__, DARWIN or __OpenBSD__ are defined. (For example, FreeBSD derivatives).
2016-03-15Merge remote-tracking branch 'weasel/bug18458'Nick Mathewson
2016-03-11simplify rend_cache_store_status_t back to a booleanRoger Dingledine
it used to be a tri-state, but now it's just a bi-state, so we can take out all the machinery like the enum.
2016-03-11rip out hid_serv_acting_as_directory()Roger Dingledine
When we made HidServDirectoryV2 always 1, we removed the situation where a relay could choose not to be an HSDir. Now simplify the rest of the code to reflect this decision. (We have to remove two apparently unrelated free() calls in the unit tests, since they used to free stuff that we created as a side effect of calling router_get_my_routerinfo(), and now we no longer call that.)
2016-03-11rip out hid_serv_responsible_for_desc_id()Roger Dingledine
This simplifies relay behavior, because the relay offers the hsdir functionality independent of whether the directory authorities have decided this relay is suitable for clients to use yet. Implements ticket 18332.
2016-03-11Merge remote-tracking branch 'public/bug18204_028'Nick Mathewson
2016-03-11Add changes file for 18448; refactorNick Mathewson
(I've made it so FreeBSD || FreeBSD_kernel is enough to ensure that we think you might have ipfw, and so that the logic is all in one place.)
2016-03-11enable and test transproxy on FreeBSD derivatives #18448Steven Chamberlain
The transproxy feature is only enabled when __FreeBSD__ is defined, and only regular FreeBSD does that. Change this to __FreeBSD_kernel__ which is defined on derivatives as well. This enables the relevant options/validate__transproxy test on FreeBSD derivatives.
2016-03-11Do not link tests against both libor.a and libor-testing.aNick Mathewson
Also, put libor-testing.a at a better position in the list of libraries, to avoid linker errors. This is a fix, or part of a fix, for 18490.
2016-03-01First RelaxDirModeCheck implementationPeter Palfrader
2016-02-28Use the kdf_rfc5869() function instead of kdf().Alexander Færøy
This patch fixes an issue in "ntor_ref.py gen_kdf_vectors" where the script tries to call the undefined function kdf().
2016-02-27Update the copyright year.Nick Mathewson
2016-02-24Fix a huge number of leaks in test_config.cNick Mathewson
I no longer see asan reporting memory leaks in the unit tests.
2016-02-24Fix memory leaks in routerlist/pick_directory_server_impl testNick Mathewson
2016-02-24Fix a leak in test_have_enough_mem_for_dircacheNick Mathewson
2016-02-24Remove the freelist from memarea.cNick Mathewson
This is in accordance with our usual policy against freelists, now that working allocators are everywhere. It should also make memarea.c's coverage higher. I also doubt that this code ever helped performance.
2016-02-23Another clang+_FORTIFY_SOURCE issueNick Mathewson
There was a parenthesis issue in test_util that clang found confusing. This part was only in master. Closes issue 14821.
2016-02-23Merge remote-tracking branch 'teor/bug18348-v2'Nick Mathewson
2016-02-23Merge branch 'bug17795'Nick Mathewson
2016-02-23Add missing check to test_address_get_if_addrs_ifaddrs. Bug 18378Nick Mathewson
2016-02-23Appease make check-spacesAndrea Shepard
2016-02-22Another memory leak in the testsNick Mathewson
2016-02-22Small fixup on last fix to test leaksNick Mathewson
2016-02-22Fix a bunch of memory leaks in the unit testsNick Mathewson
2016-02-22asan does not like TO_CONN(NULL)Nick Mathewson
2016-02-21Update unit tests for fascist_firewall_choose_address*teor (Tim Wilson-Brown)
Check that clients, bridge clients, and relays choose addresses as expected.
2016-02-16Fix a NULL dereference on unit test failure. CID 1353177.Nick Mathewson
2016-02-11Merge branch 'check_log_mutex_uncherrypicked'Nick Mathewson
2016-02-11Initialise logging before trying to use it in unit teststeor (Tim Wilson-Brown)
2016-02-11make check-spacesNick Mathewson
2016-02-11Merge branch 'feature17840-v11-tests_truncated'Nick Mathewson
2016-02-11Merge remote-tracking branch 'teor/feature17840-v11-merged-v2'Nick Mathewson
2016-02-10Merge remote-tracking branch 'sebastian/bug18242'Nick Mathewson
2016-02-10Merge remote-tracking branch 'public/bug18184'Nick Mathewson
2016-02-10Whitespace fixesNick Mathewson
2016-02-10Another automated rename.Nick Mathewson
Also simplify crypto_common_digests() to have no loop.
2016-02-10Rename crypto_digest_all, and digests_t.Nick Mathewson
They are no longer "all" digests, but only the "common" digests. Part of 17795. This is an automated patch I made with a couple of perl one-liners: perl -i -pe 's/crypto_digest_all/crypto_common_digests/g;' src/*/*.[ch] perl -i -pe 's/\bdigests_t\b/common_digests_t/g;' src/*/*.[ch]