mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
prop224: Remove pointless unit test
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
1a03edefba
commit
791625750e
@ -912,32 +912,6 @@ test_decode_multiple_intro_points(void *arg)
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
test_free_objects(void *arg)
|
|
||||||
{
|
|
||||||
(void) arg;
|
|
||||||
|
|
||||||
{
|
|
||||||
const char u[] = { 'U', 'U', 'U', 'U' };
|
|
||||||
hs_desc_plaintext_data_t *data = tor_malloc_zero(sizeof(*data));
|
|
||||||
/* Set a memory marker so we know if the data was properly wiped. */
|
|
||||||
memset(&data->version, 'U', sizeof(data->version));
|
|
||||||
hs_desc_plaintext_data_free(data);
|
|
||||||
tt_mem_op(&data->version, OP_NE, u, sizeof(u));
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
hs_desc_encrypted_data_t *data = tor_malloc_zero(sizeof(*data));
|
|
||||||
/* Set a memory marker so we know if the data was properly wiped. */
|
|
||||||
data->create2_ntor = 1;
|
|
||||||
hs_desc_encrypted_data_free(data);
|
|
||||||
tt_int_op(data->create2_ntor, OP_NE, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
done:
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_decode_plaintext(void *arg)
|
test_decode_plaintext(void *arg)
|
||||||
{
|
{
|
||||||
@ -1133,8 +1107,6 @@ struct testcase_t hs_descriptor[] = {
|
|||||||
/* Misc. */
|
/* Misc. */
|
||||||
{ "version", test_supported_version, TT_FORK,
|
{ "version", test_supported_version, TT_FORK,
|
||||||
NULL, NULL },
|
NULL, NULL },
|
||||||
{ "free_objects", test_free_objects, TT_FORK,
|
|
||||||
NULL, NULL },
|
|
||||||
{ "validate_cert", test_validate_cert, TT_FORK,
|
{ "validate_cert", test_validate_cert, TT_FORK,
|
||||||
NULL, NULL },
|
NULL, NULL },
|
||||||
{ "desc_signature", test_desc_signature, TT_FORK,
|
{ "desc_signature", test_desc_signature, TT_FORK,
|
||||||
|
Loading…
Reference in New Issue
Block a user