diff options
author | teor <teor2345@gmail.com> | 2015-05-06 18:27:26 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2015-05-06 18:27:26 +1000 |
commit | 75fc4d551174b712a0468ae7a8be821b566ef1f9 (patch) | |
tree | e03662685b7ae2fb4e2cfff0f4bec0f50fe221b2 /src/test/test_util.c | |
parent | e60c612447d376ad07be5e950cce087abcf8f491 (diff) | |
download | tor-75fc4d551174b712a0468ae7a8be821b566ef1f9.tar.gz tor-75fc4d551174b712a0468ae7a8be821b566ef1f9.zip |
Remove test for strclear as it no longer exists in the codebase
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r-- | src/test/test_util.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index d3a2bc2ee0..d23ce5f9a9 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -4273,26 +4273,6 @@ test_util_cast_double_to_int64(void *arg) ; } -static void -test_util_strclear(void *arg) -{ - static const char *vals[] = { "", "a", "abcdef", "abcdefgh", NULL }; - int i; - char *v = NULL; - (void)arg; - - for (i = 0; vals[i]; ++i) { - size_t n; - v = tor_strdup(vals[i]); - n = strlen(v); - tor_strclear(v); - tt_assert(tor_mem_is_zero(v, n+1)); - tor_free(v); - } - done: - tor_free(v); -} - #define UTIL_LEGACY(name) \ { #name, test_util_ ## name , 0, NULL, NULL } @@ -4511,7 +4491,6 @@ struct testcase_t util_tests[] = { UTIL_TEST(round_to_next_multiple_of, 0), UTIL_TEST(laplace, 0), UTIL_TEST(cast_double_to_int64, 0), - UTIL_TEST(strclear, 0), UTIL_TEST(find_str_at_start_of_line, 0), UTIL_TEST(string_is_C_identifier, 0), UTIL_TEST(asprintf, 0), |