summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2015-06-22Repair breakage in early-error case of microdesc parsingNick Mathewson
When I fixed #11243, I made it so we would take the digest of a descriptor before tokenizing it, so we could desist from download attempts if parsing failed. But when I did that, I didn't remove an assertion that the descriptor began with "onion-key". Usually, this was enforced by "find_start_of_next_microdescriptor", but when find_start_of_next_microdescriptor returned NULL, the assertion was triggered. Fixes bug 16400. Thanks to torkeln for reporting and cypherpunks_backup for diagnosing and writing the first fix here.
2015-05-26Fix unit tests on MSVC2013.Nick Mathewson
Patch from "NewEraCracker." Fixes bug16030; bugfix on 0.2.6.2-alpha.
2015-03-12Merge remote-tracking branch 'public/feature15212_026' into maint-0.2.6Nick Mathewson
2015-03-10Fix check-spacesNick Mathewson
2015-03-10Add link protocol version counts to the heartbeat messageNick Mathewson
Closes ticket 15212
2015-03-09testing_common.c: avoid side-effects of tor_assertTom van der Woerdt
2015-02-26Have zero_length_keys.sh use an empty torrc file.Nick Mathewson
Fixes 15033; bugfix on 0.2.6.3-alpha.
2015-02-24Update test_status.c to accommodate changes in heartbeat messagesNick Mathewson
Fixes #15012; bug not in any released Tor
2015-02-23Remove lingering mempool codecypherpunks
2015-02-23Fix endianness issues in test_config_resolve_my_address().rl1987
Since resolve_my_address() yields IP address in host order there is no need to use byteorder functions for conversion.
2015-02-18clean up comments and whitespace a bitRoger Dingledine
2015-02-18whitespace fixesNick Mathewson
2015-02-18Combine test_helpers.[ch] and testhelper.[ch]Nick Mathewson
2015-02-18Merge branch 'bug9321_rerebase'Nick Mathewson
Conflicts: src/or/dirvote.h src/test/include.am src/test/test_entrynodes.c
2015-02-18Add unittests for the guardfraction feature.George Kadianakis
2015-02-18Unittest prep: Move get_yesterday_date_str() to helper file.George Kadianakis
We want to use this function in our guardfraction unittests, so make a test_helpers module and move it there.
2015-02-17Use --list-fingerprint instead of process control in zero_length_keys.shNick Mathewson
Using kill and wait in this way may have been making windows builders unhappy.
2015-02-17Wrap two long linesNick Mathewson
2015-02-16Fix a few coverity "Use after NULL check" warningsNick Mathewson
Also remove the unit test mocks that allowed get_options() to be NULL; that's an invariant violation for get_options().
2015-02-12Merge remote-tracking branch 'sebastian/bug14875'Nick Mathewson
2015-02-12Actually get all interface addressesSebastian Hahn
If we guessed a buffer size too small, we never increased the buffer and tried again Also simplify the interface of ifreq_to_smartlist a little
2015-02-11Merge branch 'bug14478_squashed'Nick Mathewson
2015-02-11Put error messages to stderrSebastian Hahn
Thanks weasel :) Also remove stray debug output
2015-02-11Change exit code of zero_length_keys scriptSebastian Hahn
Weasel notes that exit codes above 128 are for when a script dies from a signal.
2015-02-11Avoid undefined behaviour of testSebastian Hahn
Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-11Check that mktemp result is a directorySebastian Hahn
Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-11Clean up after zero length key testSebastian Hahn
2015-02-11Merge remote-tracking branch 'public/remove_freelist'Nick Mathewson
2015-02-11Merge branch 'bug12844'Nick Mathewson
Conflicts: src/or/circuituse.c src/test/include.am src/test/test_entrynodes.c
2015-02-11Remove mempools and buf freelistsNick Mathewson
They have been off-by-default since 0.2.5 and nobody has complained. :) Also remove the buf_shrink() function, which hasn't done anything since we first stopped using contiguous memory to store buffers. Closes ticket 14848.
2015-02-08Avoid calling SMARTLIST_FOREACH on a NULL smartlist in teststeor
Check if each smartlist is NULL before calling SMARTLIST_FOREACH on it. Bug discovered by the clang static analyzer. Apple clang 600.0.56 (LLVM 3.5svn) on x86_64-apple-darwin14.1.0.
2015-02-06Remove useless export in zero length key testSebastian Hahn
Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-06Don't use invalid exit values in zero length key testSebastian Hahn
Shell exit values must fall into the range of [0-255], so let's honour this. In practice, the "exit -1" from the old code set an exit value of 255 on most systems, so let's pick that. Fixes part of bug #14478, patch idea suggested by an anonymous contributor. Thanks!
2015-02-06Merge remote-tracking branch 'sebastian/bug13993'Nick Mathewson
2015-02-06Fix check-spaces complaintsSebastian Hahn
2015-02-06Add unit test for #13290Sebastian Hahn
2015-02-03fix a unit tests memory leak (my fault)Nick Mathewson
2015-02-02Merge remote-tracking branch 'public/bug9635_warnings_025'Nick Mathewson
Conflicts: src/test/test.c
2015-02-02Test for 13865.rl1987
2015-01-30Merge remote-tracking branch 'public/prop227_v2'Nick Mathewson
Conflicts: src/test/test_dir.c
2015-01-29Correctly reject packages lines with empty entriesNick Mathewson
2015-01-23Try to fix some more memory leaks in the unit testsNick Mathewson
2015-01-23Fix some memory leaks in new address testsNick Mathewson
2015-01-23whitespace fixesNick Mathewson
2015-01-23Split the slow unit tests into their own binaryNick Mathewson
This can run in parallel with the faster ones and the other tests.
2015-01-23Merge branch 'if_addr_refactoring_squashed'Nick Mathewson
Conflicts: src/test/include.am src/test/test.c
2015-01-23Refactor code that looks up addresses from interfacesrl1987
Now the code has separate implementation and examination functions, uses smartlists sanely, and has relatively decent test coverage.
2015-01-23Merge remote-tracking branch 'public/ticket9969'Nick Mathewson
Conflicts: src/or/directory.c src/or/routerlist.c src/or/routerlist.h src/test/include.am src/test/test.c
2015-01-23Merge remote-tracking branch 'public/ticket13762'Nick Mathewson
2015-01-21Merge branch 'better_workqueue_v3_squashed'Nick Mathewson