mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 05:26:20 +02:00
tests: Make tt_finished() macro for tests without tt_*_op() calls.
This commit is contained in:
parent
c2c5b13e5d
commit
3ee7a8d3a5
@ -72,6 +72,14 @@
|
|||||||
I64_PRINTF_TYPE, I64_FORMAT, \
|
I64_PRINTF_TYPE, I64_FORMAT, \
|
||||||
{print_ = (I64_PRINTF_TYPE) value_;}, {}, TT_EXIT_TEST_FUNCTION)
|
{print_ = (I64_PRINTF_TYPE) value_;}, {}, TT_EXIT_TEST_FUNCTION)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Declare that the test is done, even though no tt___op() calls were made.
|
||||||
|
*
|
||||||
|
* For use when you only want to test calling something, but not check
|
||||||
|
* any values/pointers/etc afterwards.
|
||||||
|
*/
|
||||||
|
#define tt_finished() TT_EXIT_TEST_FUNCTION
|
||||||
|
|
||||||
const char *get_fname(const char *name);
|
const char *get_fname(const char *name);
|
||||||
const char *get_fname_rnd(const char *name);
|
const char *get_fname_rnd(const char *name);
|
||||||
struct crypto_pk_t *pk_generate(int idx);
|
struct crypto_pk_t *pk_generate(int idx);
|
||||||
|
@ -107,7 +107,7 @@ static void
|
|||||||
test_bridges_helper_func_add_bridges_to_bridgelist(void *arg)
|
test_bridges_helper_func_add_bridges_to_bridgelist(void *arg)
|
||||||
{
|
{
|
||||||
helper_add_bridges_to_bridgelist(arg);
|
helper_add_bridges_to_bridgelist(arg);
|
||||||
tt_int_op(0, OP_EQ, 0);
|
tt_finished();
|
||||||
|
|
||||||
done:
|
done:
|
||||||
mark_bridge_list();
|
mark_bridge_list();
|
||||||
|
Loading…
Reference in New Issue
Block a user