summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-04-07Fix some harmless/untriggerable memory leaks found by coverityNick Mathewson
2014-04-07Merge remote-tracking branch 'public/bug10363_024_squashed'Nick Mathewson
2014-04-07Another 10363 instance: this one in tor_memmem fallback codeNick Mathewson
2014-04-05Merge remote-tracking branch 'public/bug10801_024'Nick Mathewson
Conflicts: src/common/address.c src/or/config.c
2014-04-05Make tor_addr_port_parse handle portless IPv6 addresses correctly.Nick Mathewson
(Not a bugfix on any Tor release; before 10801_024, it didn't handle portless addresses at all.)
2014-04-05Add a test for default/port conflicts in tor_addr_port_parseNick Mathewson
2014-04-02Unit tests for connection_edge_process_resolved_cellNick Mathewson
Also rename a function to be more accurate (resolve->resolved)
2014-04-02Tests for resolved_cell_parseNick Mathewson
2014-04-01Merge remote-tracking branch 'public/bug4645'Nick Mathewson
Conflicts: src/or/dirserv.c
2014-04-01Merge remote-tracking branch 'public/bug11232'Nick Mathewson
2014-03-31Check return values for tor_munmap_file() in unit testsNick Mathewson
2014-03-27Don't do a DNS lookup on a bridge line addressNick Mathewson
Fixes bug 10801; bugfix on 07bf274d in 0.2.0.1-alpha.
2014-03-20Fix unittest compilation with --disable-curve25519Nick Mathewson
This is a fix for 9700, which we already fixed in 0.2.5.x, but which got left in 0.2.4.x. This is a partial backport of a0a855d586d99540277014ccd3
2014-03-18Fix a use-after-free in test_circuitlist.cNick Mathewson
Found by clang-3.4 analyzers.
2014-03-13Fix some leaks/missed checks in the unit testsNick Mathewson
Coverity spotted these.
2014-03-11Merge remote-tracking branch 'asn/bug11069_take2'Nick Mathewson
2014-03-10Throw control port warning if we failed to connect to all our bridges.George Kadianakis
2014-03-06Upgrade to the latest version of tinytest.Nick Mathewson
This brings us to tinytest commit 709a36ba63ff16d8. The only big change tor-side is that we don't need our own test_mem_op operation any longer.
2014-03-06tinytest tt_{mem,str}_op now handle NULLs betterNick Mathewson
Now a NULL argument to either makes it fail, not crash. Fies bug 9004; bugfix on 0.2.2.4-alpha.
2014-03-05Fix whitespace errors, all of them mine.Nick Mathewson
2014-03-05Merge remote-tracking branch 'arma/ticket5528'Nick Mathewson
Conflicts: src/or/router.c src/test/test_dir.c
2014-03-04Merge branch 'bug10169_025_v2'Nick Mathewson
Conflicts: src/test/test.c
2014-03-03Fix compilation warnings in tor_addr_make_null patchNick Mathewson
There was one "missing prototype" warning because the test function wasn't static, and one "unused parameter" warning about the "data" parameter. Also, I added a couple of tests to make sure that the "make_null" addresses really were the addresses we expected, by formatting them as strings.
2014-03-03add test for tor_addr_make_nullKevin Murray
Signed-off-by: Kevin Murray <spam@kdmurray.id.au>
2014-02-28Unit tests for test_routerkeys_write_fingerprintNick Mathewson
2014-02-28Unit tests for pk fingerprint functionsNick Mathewson
2014-02-17Restitute a successful stat call to this test case.dana koch
Since the first stat call is made for it to deliberately fail, and we reference st.st_mode without st having valid data, st.st_mode can contain garbage and cause chmod to fail with EINVAL. We rerun stat and ensure it succeeded. Also make use of tt_abort_perror, to properly convey failure reasons to the user.
2014-02-16mingw fix: Rename a variable in the unit testsNick Mathewson
Apparently, MS C is #defining "IN" on us, so we can't name a variable IN. Delightful!
2014-02-15Merge branch 'bug4900_siphash_v2'Nick Mathewson
2014-02-14fix a whitespace snafuNick Mathewson
2014-02-12More unit tests for OOM handling.Nick Mathewson
This gets us up to no interesting untested new or changed lines for the 10169 code.
2014-02-12Initial unit tests for OOM handlingNick Mathewson
2014-02-12Add tests for buffer time tracking.Nick Mathewson
2014-02-12Several tests for buffer allocationNick Mathewson
2014-02-12Start writing tests for 10169.Nick Mathewson
Now we cover more chunk allocation functions.
2014-02-12Randomize the global siphash key at startupNick Mathewson
This completes our conversion to using siphash for our hash functions.
2014-02-12Tests for siphash, from reference implementation.Nick Mathewson
2014-02-11Free leakable values in the unit tests.Nick Mathewson
Thanks, Coverity! (CID 1171414, 1171415, 1171416)
2014-02-07Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2014-02-07Survive fedora's openssl in our benchmarksNick Mathewson
Apparently fedora currently has ECDH but not P224. This isn't a huge deal, since we no longer use OpenSSL's P224 ever (see #9780 and 72c1e5acfe1c6). But we shouldn't have segfaulting benchmarks really. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
2014-02-07Use the right functions; strncpy is usually not the answerNick Mathewson
2014-02-06add test case for node_get_verbose_nicknameQingping Hou
2014-02-06add test for node_get_verbose_nickname_by_idQingping Hou
2014-02-06remove node_describe_by_id() functionQingping Hou
This function is not used anymore
2014-02-06fix longname returned in HS_DESC control eventsQingping Hou
According to control spec, longname should not contain any spaces and is consists only of identy_digest + nickname added two functions: * node_get_verbose_nickname_by_id() * node_describe_longname_by_id()
2014-02-06Rename sun to s_un in test_addr.cNick Mathewson
Apparently the compiler on solaris 9 didn't like "sun" as an identifier. Fix for bug 10565; bugfix on 0.2.5.1-alpha.
2014-02-04Distcheck repair: add new python testing code to "tarballs"Nick Mathewson
'make distcheck' now passes again.
2014-02-03test_config.c: log which address should have failedNick Mathewson
2014-02-03Clean up test_hs.c: warning fix; tor_free() usage.Nick Mathewson
My OSX laptop rightly gave a warning because of sticking strlen() into an int, but once I took a closer look... it appears that the strlen() was part of a needlessly verbose implementation for tor_strdup(). While I was there, I fixed the usage of tor_free() in test_hs.c: It checks for NULL, and it zeros its argument. So instead of if (foo) { tor_free(foo); foo = NULL; } we should just say tor_free(foo);
2014-02-03Removing is_internal_IP() function. Resolves ticket 4645.rl1987