| Commit message (Expand) | Author | Age |
... | |
* | | | 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 Kadianakis | 2012-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 Mathewson | 2012-03-30 |
* | | Fix a bunch of check-spaces complaints | Sebastian Hahn | 2012-03-28 |
* | | 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 Hahn | 2012-03-27 |
* | | Disable some tor_sscanf tests that gcc says are illegal formats | Nick Mathewson | 2012-03-08 |
* | | Fix new strcmp_opt/len tests on OSs where strcmp() can return values >1 or <-1 | Nick Mathewson | 2012-03-08 |
* | | Add unit tests for path_is_relative | Esteban Manchado Velázquez | 2012-03-08 |
* | | Some more corner cases for tor_sscanf | Esteban Manchado Velázquez | 2012-03-08 |
* | | expand_filename tests for trailing slash in $HOME | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add some tests for expand_filename | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add two small tests for tor_sscanf | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add test for broken escapes in parse_config_... | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add some unit tests for parse_iso_time | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add tests for string_is_C_identifier | Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve coverage in string-related unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve coverage in time-related unit tests | Esteban Manchado Velázquez | 2012-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ázquez | 2012-03-08 |
* | | Add extra tests for wrap_string | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add extra tests for get_parent_directory | Esteban Manchado Velázquez | 2012-03-08 |
* | | Tweak test case text so it's clearer | Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve eat_whitespace* unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Put expected first in n_bits_set_u8 unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve tor_split_lines unit tests•••* Add some more test cases
* Switch to test_assert et al
| Esteban Manchado Velázquez | 2012-03-08 |
* | | Use test_streq in join_win_cmdline unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Use test_eq et al in spawn_background unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Use test_streq in format_helper_exit_status tests | Esteban Manchado Velázquez | 2012-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ázquez | 2012-03-08 |
* | | Improve listdir unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve a bit asprintf unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Rewrite the find_str_at_start_of_line unit tests | Esteban Manchado Velázquez | 2012-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ázquez | 2012-03-08 |
* | | Improve tor_sscanf tests•••* Add many new test cases, tweak/improve existing ones, reorganize them a bit
* Switch the parameters in all test_eq calls so the expected value is the first
* Change all the "r = tor_sscanf(...);\ntest_eq(1, r)" to the more compact
"test_eq(1, tor_sscanf(...))". It may be a tiny bit harder to find the
tor_sscanf calls (it's the long lines anyway), but it saves a lot of lines,
which should help readability.
| Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve test case for read_escaped_data unit test | Esteban Manchado Velázquez | 2012-03-08 |
* | | Trivial readability changes in mmap unit tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Clean up and improve gzip unit tests•••* Switch some test_eq parameters so the expected is always the first parameter
* Drop some manual checks of compressed format magic numbers (they're pointless
and they make the unit tests less readable and more fragile, considering
we're already indirectly checking those magic numbers via the
detect_compression_method function)
* Add a couple of extra assertions
| Esteban Manchado Velázquez | 2012-03-08 |
* | | Add/improve the rest of the strmisc tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve tor_snprintf tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add/improve tests for str{,case}cmp{start,end} | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add more/better tests in test_util_strmisc | Esteban Manchado Velázquez | 2012-03-08 |
* | | Trivial cosmetic fix in test comments | Esteban Manchado Velázquez | 2012-03-08 |
* | | Organize test_util_time in blocks•••* Separate the tests for different functions with a comment
* Move some test init code further down, closer to where it was actually being
used
| Esteban Manchado Velázquez | 2012-03-08 |
* | | Add test for comments in the config parser | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add test for broken hex parsing•••* The test currently fails, but it's commented out (with an "#if 0")
* As a broken octal actually gives a parse error, it seems fair that this
fails, too
| Esteban Manchado Velázquez | 2012-03-08 |
* | | Improve config parser escaped content tests | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add tests for escaped content in config | Esteban Manchado Velázquez | 2012-03-08 |
* | | Add quoted content tests for the config parser | Esteban Manchado Velázquez | 2012-03-08 |
* | | Fix off-by-one error in test_util_make_environment | Patrick Mézard | 2012-02-20 |
* | | Add unit tests for easily tested, non-trivial utility functions | Robert Ransom | 2012-02-17 |
* | | Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32•••This commit is completely mechanical; I used this perl script to make it:
#!/usr/bin/perl -w -i.bak -p
if (/^\s*\#/) {
s/MS_WINDOWS/_WIN32/g;
s/\bWIN32\b/_WIN32/g;
}
| Nick Mathewson | 2012-01-31 |
* | | Rename nonconformant identifiers.•••Fixes bug 4893.
These changes are pure mechanical, and were generated with this
perl script:
/usr/bin/perl -w -i.bak -p
s/crypto_pk_env_t/crypto_pk_t/g;
s/crypto_dh_env_t/crypto_dh_t/g;
s/crypto_cipher_env_t/crypto_cipher_t/g;
s/crypto_digest_env_t/crypto_digest_t/g;
s/aes_free_cipher/aes_cipher_free/g;
s/crypto_free_cipher_env/crypto_cipher_free/g;
s/crypto_free_digest_env/crypto_digest_free/g;
s/crypto_free_pk_env/crypto_pk_free/g;
s/_crypto_dh_env_get_dh/_crypto_dh_get_dh/g;
s/_crypto_new_pk_env_rsa/_crypto_new_pk_from_rsa/g;
s/_crypto_pk_env_get_evp_pkey/_crypto_pk_get_evp_pkey/g;
s/_crypto_pk_env_get_rsa/_crypto_pk_get_rsa/g;
s/crypto_new_cipher_env/crypto_cipher_new/g;
s/crypto_new_digest_env/crypto_digest_new/g;
s/crypto_new_digest256_env/crypto_digest256_new/g;
s/crypto_new_pk_env/crypto_pk_new/g;
s/crypto_create_crypto_env/crypto_cipher_new/g;
s/connection_create_listener/connection_listener_new/g;
s/smartlist_create/smartlist_new/g;
s/transport_create/transport_new/g;
| Nick Mathewson | 2012-01-18 |