diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-02-25 08:56:34 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-02-25 08:56:34 -0500 |
commit | 0dde4d6fa265b3f861900447c2cdcf23335072cf (patch) | |
tree | 2a3b4e8af03be01209eb9005db4dfdf62f0a77c9 /src/test/test_util.c | |
parent | cc6fd9833cbea1e148114af007c83906789b58ec (diff) | |
parent | cbd26157c52e27af16efcb474861eb4126085283 (diff) | |
download | tor-0dde4d6fa265b3f861900447c2cdcf23335072cf.tar.gz tor-0dde4d6fa265b3f861900447c2cdcf23335072cf.zip |
Merge remote-tracking branch 'yawning/bug14922'
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 51e9e761ab..6a4c3ec072 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -4111,26 +4111,6 @@ test_util_laplace(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 } @@ -4348,7 +4328,6 @@ struct testcase_t util_tests[] = { UTIL_LEGACY(di_ops), UTIL_TEST(round_to_next_multiple_of, 0), UTIL_TEST(laplace, 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), |