aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Expand)AuthorAge
...
* | | Fix the unittest breakage introduced by a8a862c.George Kadianakis2012-05-18
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-05-16
|\| |
| * | Make the succeeding parse_http_time tests more obviously right•••(When the correct answer is given in terms of seconds since the epoch, it's hard to be sure that it really is the right answer just by reading the code.) Nick Mathewson2012-05-16
| * | Fix month check in parse_http_time, add testSebastian Hahn2012-05-16
| * | Reject an additional type of bad date in parse_http_timeNick Mathewson2012-05-16
| * | Fix parse_http_time and add tests•••* It seems parse_http_time wasn't parsing correctly any date with commas (RFCs 1123 and 850). Fix that. * It seems parse_http_time was reporting the wrong month (they start at 0, not 1). Fix that. * Add some tests for parse_http_time, covering all three formats. Esteban Manchado Velázquez2012-05-16
* | | Fix some remaining nmake/msvc build issuesNick Mathewson2012-05-16
| |/ |/|
* | Fix a couple of wide linesNick Mathewson2012-05-11
* | Merge remote-tracking branch 'public/bug5091'Nick Mathewson2012-05-11
|\ \
| * | Fix tor_strtok_r_impl and test cases per bug #5091•••== Nick here. I tweaked this patch a little to make it apply cleanly to master, to extract some common code into a function, and to replace snprintf with tor_snprintf. -- nickm nils2012-03-30
* | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts: src/common/util.c src/test/test_util.c Nick Mathewson2012-05-10
|\ \ \ | | |/ | |/|
| * | Handle out-of-range values in tor_parse_* integer functions•••The underlying strtoX functions handle overflow by saturating and setting errno to ERANGE. If the min/max arguments to the tor_parse_* functions are equal to the minimum/maximum of the underlying type, then with the old approach, we wouldn't treat a too-large value as genuinely broken. Found this while looking at bug 5786; bugfix on 19da1f36 (in Tor 0.0.9), which introduced these functions. Nick Mathewson2012-05-07
| * | Add a sha256 hmac function, with tests•••(cherry picked from commit fdbb9cdf746bbf0c39c34188baa8872471183ff7) Nick Mathewson2012-02-22
* | | Fix a segfault in pt/protocol test•••Now that the pt code logs mp->argv[0] all over the place, we need to be sure to set up mp->argv in our tests. Bugfix on e603692adcd, not in any released version. Nick Mathewson2012-05-08
* | | Several mingw/msvc/cross-compilation fixes•••They boil down to: - MS_WINDOWS is dead and replaced with _WIN32, but we let a few instances creep in when we merged Esteban's tests. - Capitalizing windows header names confuses mingw. - #ifdef 0 ain't C. - One unit test wasn't compiled on windows, but was being listed anyway. - One unit test was checking for the wrong value. Gisle Vanem found and fixed the latter 3 issues. Nick Mathewson2012-04-26
* | | tor_vsscanf(): Don't return -1 if '%%' doesn't match.•••tor_vsscanf() is supposed to return the current number of matches on match failure. George Kadianakis2012-04-03
| |/ |/|
* | Fix a couple of "unused assigned value" warnings in parse_config tests•••Coverity doesn't like the fact that we were storing the value of parse_config_line_from_str() but not checking it in a couple of cases. Fixes CID 505 and 506. Nick Mathewson2012-03-30
* | Fix a bunch of check-spaces complaintsSebastian Hahn2012-03-28
* | Refactor the API for setting up a block cipher.•••It allows us more flexibility on the backend if the user needs to specify the key and IV at setup time. Nick Mathewson2012-03-27
* | Remove support for PK_NO_PADDING in crypto_pk_public_hybrid_encrypt•••We never use it, and it would be a stupid thing if we started using it. Nick Mathewson2012-03-27
* | Merge remote-tracking branch 'karsten/bug5053'Nick Mathewson2012-03-27
|\ \
| * | Count IPv6 connections in bridge and entry stats.Karsten Loesing2012-02-09
* | | Provide large enough buffer in test_util_sscanf()•••This was causing crashes during unit test runs, as stack smashing protections got triggered. Issue spotted by weasel Sebastian Hahn2012-03-27
* | | Disable some tor_sscanf tests that gcc says are illegal formatsNick Mathewson2012-03-08
* | | Fix new strcmp_opt/len tests on OSs where strcmp() can return values >1 or <-1Nick Mathewson2012-03-08
* | | Add unit tests for path_is_relativeEsteban Manchado Velázquez2012-03-08
* | | Some more corner cases for tor_sscanfEsteban Manchado Velázquez2012-03-08
* | | expand_filename tests for trailing slash in $HOMEEsteban Manchado Velázquez2012-03-08
* | | Add some tests for expand_filenameEsteban Manchado Velázquez2012-03-08
* | | Add two small tests for tor_sscanfEsteban Manchado Velázquez2012-03-08
* | | Add test for broken escapes in parse_config_...Esteban Manchado Velázquez2012-03-08
* | | Add some unit tests for parse_iso_timeEsteban Manchado Velázquez2012-03-08
* | | Add tests for string_is_C_identifierEsteban Manchado Velázquez2012-03-08
* | | Improve coverage in string-related unit testsEsteban Manchado Velázquez2012-03-08
* | | Improve coverage in time-related unit testsEsteban Manchado Velázquez2012-03-08
* | | Remove unreliable assertion•••* This assertion fails when executing the whole suite, but not when executing this test by itself * Ideally I'd prefer starting with a guaranteed empty directory, but it's not very important in this case as non-existence of other paths is being checked explicitly Esteban Manchado Velázquez2012-03-08
* | | Add extra tests for wrap_stringEsteban Manchado Velázquez2012-03-08
* | | Add extra tests for get_parent_directoryEsteban Manchado Velázquez2012-03-08
* | | Tweak test case text so it's clearerEsteban Manchado Velázquez2012-03-08
* | | Improve eat_whitespace* unit testsEsteban Manchado Velázquez2012-03-08
* | | Put expected first in n_bits_set_u8 unit testsEsteban Manchado Velázquez2012-03-08
* | | Improve tor_split_lines unit tests•••* Add some more test cases * Switch to test_assert et al Esteban Manchado Velázquez2012-03-08
* | | Use test_streq in join_win_cmdline unit testsEsteban Manchado Velázquez2012-03-08
* | | Use test_eq et al in spawn_background unit testsEsteban Manchado Velázquez2012-03-08
* | | Use test_streq in format_helper_exit_status testsEsteban Manchado Velázquez2012-03-08
* | | Improve get_parent_directory unit tests•••* Add more test cases to the get_parent_directory tests * Switch the parameter order so that the expected value is the first one Esteban Manchado Velázquez2012-03-08
* | | Improve listdir unit testsEsteban Manchado Velázquez2012-03-08
* | | Improve a bit asprintf unit testsEsteban Manchado Velázquez2012-03-08
* | | Rewrite the find_str_at_start_of_line unit testsEsteban Manchado Velázquez2012-03-08
* | | Improve/extend strtok_r unit tests•••* Add several failing tests (embedded in an "#if 0" block) for behaviour that doesn't match strtok_r * Add another, passing, more interesting test * Use test_eq_ptr(NULL, ...) instead of test_assert(NULL == ...) Esteban Manchado Velázquez2012-03-08