aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2017-12-21Merge branch 'maint-0.2.5' into maint-0.2.8maint-0.2.8Nick Mathewson
2017-12-21Move free to end of test function so coverity won't complain.Nick Mathewson
2017-12-21Move destroy cells into a separate queue type of their own, to save RAMNick Mathewson
We've been seeing problems with destroy cells queues taking up a huge amount of RAM. We can mitigate this, since while a full packed destroy cell takes 514 bytes, we only need 5 bytes to remember a circuit ID and a reason. Fixes bug 24666. Bugfix on 0.2.5.1-alpha, when destroy cell queues were introduced.
2017-11-13Merge branch 'bug23291_028' into maint-0.2.8Nick Mathewson
2017-10-23Adjust test, now that there are 9 dirauths againNick Mathewson
2017-08-2122839: fix check_heap_buffer buffer size in test-memwipeTies Stuij
2017-07-07mingw fix: avoid "unused var" warning.Nick Mathewson
This is a backport of 19615bce64cd381a925bc3910120ac39ca918e7c to fix bug 22838.
2017-07-05Merge branch 'maint-0.2.7-redux' into maint-0.2.8Nick Mathewson
2017-07-05Merge branch 'maint-0.2.6' into maint-0.2.7-reduxNick Mathewson
2017-07-05Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2017-07-05Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2017-07-03Fix assertion failure related to openbsd strtol().Nick Mathewson
Fixes bug 22789; bugfix on 0.2.3.8-alpha.
2016-07-17Fix warnings in test_util_formats.Nick Mathewson
Storing 255 into a char gives a warning when char is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha, where these tests were added.
2016-07-05Repair unit test that assumed we have 9 dirauths.Nick Mathewson
2016-06-14Resolve the remaining openssl "-Wredundant-decls" warnings.Nick Mathewson
Another part of 19406
2016-06-14Bug 19406: Fix the unit tests to work with OpenSSL 1.1.xYawning Angel
Just as it says on the tin. Don't need to fully disable any tests and reduce coverage either. Yay me.
2016-06-02Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-06-02Use tor_sscanf, not sscanf, in test_util.c.Nick Mathewson
Fixes the 0.2.7 case of bug #19213, which prevented mingw64 from working.
2016-05-25Merge branch 'bug18668_028' into maint-0.2.8Nick Mathewson
2016-05-24Make sure that libscrypt_scrypt actually exists before using it.Nick Mathewson
Previously, if the header was present, we'd proceed even if the function wasn't there. Easy fix for bug 19161. A better fix would involve trying harder to find libscrypt_scrypt.
2016-05-19Merge remote-tracking branch 'teor/fix18809-warnings' into maint-0.2.8Nick Mathewson
2016-05-19Merge remote-tracking branch 'public/bug19073' into maint-0.2.8Nick Mathewson
2016-05-19Fix unused-but-set-variable warnings in the connection unit teststeor (Tim Wilson-Brown)
No behaviour change - just remove the variables
2016-05-19Fix a compilation error in test_dir.cNick Mathewson
2016-05-19Merge branch 'bug18809_028_squashed' into maint-0.2.8Nick Mathewson
2016-05-19Add unit tests for networkstatus_consensus_is_bootstrappingteor (Tim Wilson-Brown)
2016-05-19Restore and improve download schedule unit teststeor (Tim Wilson-Brown)
2016-05-19Update unit tests for multiple bootstrap connectionsteor (Tim Wilson-Brown)
2016-05-17Remove duplicate siging_key_cert fields.Nick Mathewson
With the fix for #17150, I added a duplicate certificate here. Here I remove the original location in 0.2.8. (I wouldn't want to do that in 027, due to the amount of authority-voting-related code drift.) Closes 19073.
2016-05-16Initialize networking _before_ initializing libevent in the testsNick Mathewson
This prevents WSANOTINITIALISED errors and fixes bug 18668. Bugfix on 0.2.8.1-alpha -- 1bac468882fd732460d8a25735131 specifically.
2016-05-09fix typos/etc before i go nuts on #18809Roger Dingledine
2016-04-28Make mock function static to prevent future clashesteor (Tim Wilson-Brown)
2016-04-28Decide to advertise begindir support like we decide to advertise DirPortteor (Tim Wilson-Brown)
Decide to advertise begindir support in a similar way to how we decide to advertise DirPort. Fix up the associated descriptor-building unit tests. Resolves #18616, bugfix on 0c8e042c30946faa in #12538 in 0.2.8.1-alpha.
2016-04-12Do 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. Conflicts: src/test/include.am
2016-04-07Turn TestingClientBootstrap* into non-testing optionsDavid Goulet
This changes simply renames them by removing "Testing" in front of them and they do not require TestingTorNetwork to be enabled anymore. Fixes #18481 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2016-04-05Don't call the system toupper or tolower.Nick Mathewson
Yes, we could cast to unsigned char first, but it's probably safest to just use our own (in test_util), or remove bad-idea features that we don't use (in readpassphrase.c). Fixes 18728.
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).