aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
AgeCommit message (Collapse)Author
2016-06-30Add tv_udiff and tv_mdiff unit tests with negative valuesteor (Tim Wilson-Brown)
2016-06-29Add more unit tests for tv_udiff and tv_mdiffteor (Tim Wilson-Brown)
2016-06-20Small coverage improvements on compat.cNick Mathewson
2016-06-19Fix #19063: Add check in utility macroU+039b
2016-06-19Merge branch 'zlib_coverage_squashed'Nick Mathewson
2016-06-19Unindent blockNick Mathewson
2016-06-19Remove support for zlib <= 1.1Nick Mathewson
zlib 1.2 came out in 2003; earlier versions should be dead by now. Our workaround code was only preventing us from using the gzip encoding (if we decide to do so), and having some dead code linger around in torgzip.c
2016-06-16Coverage on parse_config_line_from_str_verbose.Nick Mathewson
2016-06-16Remove parse_config_line_from_str aliasNick Mathewson
All of our code just uses parse_config_line_from_str_verbose.
2016-06-16Mark code unreachable in unescape_string()Nick Mathewson
Also, add tests for it in case someday it does become reachable.
2016-06-16On Windows, tv_sec is long, not time_t.Nick Mathewson
I'm not angry, Windows: just very disappointed.
2016-06-16Try to fix memarea test on 32-bit systemsNick Mathewson
2016-06-16tests for size_mul_check__()Nick Mathewson
it's important, and we should make sure we got it right.
2016-06-16Correct the rounding behavior on tv_mdiff.Nick Mathewson
Fix for bug 19428.
2016-06-16Improve coverage on tv_udiff, and tv_mdiff.Nick Mathewson
I found some bugs in tv_mdiff; separate commit for that
2016-06-16Improve coverage on esc_for_log, esc_for_log_lenNick Mathewson
2016-06-16Reach 100% line coverage on memarea.cNick Mathewson
2016-06-11Merge branch 'bug19180_easy_squashed'Nick Mathewson
2016-06-11Resolve some warnings from OSX clang.Nick Mathewson
2016-06-11Add -Wfloat-conversion for GCC >= 4.9Nick Mathewson
This caught quite a few minor issues in our unit tests and elsewhere in our code.
2016-06-08Unit tests for our zlib code to test and reject compression bombs.Nick Mathewson
2016-06-02Merge branch 'maint-0.2.8'Nick Mathewson
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-19Remove round_int64_to_next_multiple_of: It is now unused.Nick Mathewson
2016-05-12Run tor_sscanf test in subprocess, in hopes of coaxing more info from jenkinsNick Mathewson
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-02-27Update the copyright year.Nick Mathewson
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-01-11Make the touch_file unit test work around FS/system time sync issuesNick Mathewson
Sometimes you can call time() and then touch a file, and have the second come out a little before the first. See #18025 for way more information than you necessarily wanted.
2016-01-07Fix #18012 harder.Nick Mathewson
2016-01-07Try to fix windows test build (#18012)Nick Mathewson
2016-01-03Unit tests for getpw* functionsNick Mathewson
2016-01-03clean up the "skip this util test on windows" logic.Nick Mathewson
2016-01-03Add a test for touch_fileNick Mathewson
2015-11-19Merge remote-tracking branch 'teor/bug17632-no-ipv4-no-localhost-squashed'Nick Mathewson
2015-11-19Fixup #17638: ignore EINVAL from FreeBSD jails without ::1teor (Tim Wilson-Brown)
In my testing, an IPv6-only FreeBSD jail without ::1 returned EINVAL from tor_ersatz_socketpair. Let's not fail the unit test because of this - it would only ever use tor_socketpair() anyway.
2015-11-19Make tor_ersatz_socketpair work on IPv6-only systemsteor (Tim Wilson-Brown)
(But it won't work on some systems without IPv4/IPv6 localhost (some BSD jails) by design, to avoid creating sockets on routable IP addresses. However, those systems likely have the AF_UNIX socketpair, which tor prefers.) Fixes bug #17638; bugfix on a very early tor version, earlier than 22dba27d8dd5 (23 Nov 2004) / svn:r2943. Patch by "teor".
2015-11-19Fix unit tests on systems without IPv4 or localhost addressesteor (Tim Wilson-Brown)
Make unit tests pass on IPv6-only systems, and systems without localhost addresses (like some FreeBSD jails). Fixes: * get_if_addrs_ifaddrs: systems without localhost * get_if_addrs_ioctl: only works on IPv4 systems * socket: check IPv4 and IPv6, skip on EPROTONOSUPPORT * socketpair_ersatz: uses IPv4, skip on EPROTONOSUPPORT Fixes bug #17632; bugfix on unit tests in 0.2.7.3-rc. c464a367728d was a partial fix for this issue in #17255; it was released in unit tests in 0.2.7.4-rc. Patch by "teor".
2015-11-19Really Really Fixup 86eba14ac549: Windows support, error return valuesteor (Tim Wilson-Brown)
2015-11-18Really Fixup 86eba14ac549: error return values are negativeteor (Tim Wilson-Brown)
2015-11-18Fixup 86eba14ac549: add errno.h for EPROTONOSUPPORTteor (Tim Wilson-Brown)
2015-11-18Fix unit tests on systems without IPv4 or localhost addressesteor (Tim Wilson-Brown)
Make unit tests pass on IPv6-only systems, and systems without localhost addresses (like some FreeBSD jails). Fixes: * get_if_addrs_ifaddrs: systems without localhost * get_if_addrs_ioctl: only works on IPv4 systems * socket: check IPv4 and IPv6, skip on EPROTONOSUPPORT * socketpair_ersatz: uses IPv4, skip on EPROTONOSUPPORT Fixes bug #17632; bugfix on unit tests in 0.2.7.3-rc. c464a367728d was a partial fix for this issue in #17255; it was released in unit tests in 0.2.7.4-rc. Patch by "teor".