Loading src/test/test_circuitlist.c +4 −3 Original line number Diff line number Diff line Loading @@ -420,7 +420,8 @@ test_hs_circuitmap_isolation(void *arg) hs_circuitmap_register_intro_circ_v2_relay_side(circ3, tok2); /* Check that the getters work */ tt_ptr_op(circ2, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); tt_ptr_op(circ2, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); tt_ptr_op(circ3, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok2)); /* Register circ4 with tok2: it should override circ2 */ Loading @@ -431,7 +432,8 @@ test_hs_circuitmap_isolation(void *arg) /* Check that the getter returns circ4; the last circuit registered with * that token. */ tt_ptr_op(circ4, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); tt_ptr_op(circ4, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); } done: Loading @@ -445,7 +447,6 @@ test_hs_circuitmap_isolation(void *arg) circuit_free(TO_CIRCUIT(circ4)); } struct testcase_t circuitlist_tests[] = { { "maps", test_clist_maps, TT_FORK, NULL, NULL }, { "rend_token_maps", test_rend_token_maps, TT_FORK, NULL, NULL }, Loading src/test/test_hs_intropoint.c +2 −1 Original line number Diff line number Diff line Loading @@ -548,7 +548,8 @@ test_intro_point_registration(void *arg) tt_int_op(1, ==, HT_SIZE(the_hs_circuitmap)); get_auth_key_from_cell(&auth_key, RELAY_COMMAND_ESTABLISH_INTRO, establish_intro_cell); returned_intro_circ = hs_circuitmap_get_intro_circ_v3_relay_side(&auth_key); returned_intro_circ = hs_circuitmap_get_intro_circ_v3_relay_side(&auth_key); tt_ptr_op(intro_circ, ==, returned_intro_circ); } Loading Loading
src/test/test_circuitlist.c +4 −3 Original line number Diff line number Diff line Loading @@ -420,7 +420,8 @@ test_hs_circuitmap_isolation(void *arg) hs_circuitmap_register_intro_circ_v2_relay_side(circ3, tok2); /* Check that the getters work */ tt_ptr_op(circ2, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); tt_ptr_op(circ2, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); tt_ptr_op(circ3, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok2)); /* Register circ4 with tok2: it should override circ2 */ Loading @@ -431,7 +432,8 @@ test_hs_circuitmap_isolation(void *arg) /* Check that the getter returns circ4; the last circuit registered with * that token. */ tt_ptr_op(circ4, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); tt_ptr_op(circ4, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok2)); } done: Loading @@ -445,7 +447,6 @@ test_hs_circuitmap_isolation(void *arg) circuit_free(TO_CIRCUIT(circ4)); } struct testcase_t circuitlist_tests[] = { { "maps", test_clist_maps, TT_FORK, NULL, NULL }, { "rend_token_maps", test_rend_token_maps, TT_FORK, NULL, NULL }, Loading
src/test/test_hs_intropoint.c +2 −1 Original line number Diff line number Diff line Loading @@ -548,7 +548,8 @@ test_intro_point_registration(void *arg) tt_int_op(1, ==, HT_SIZE(the_hs_circuitmap)); get_auth_key_from_cell(&auth_key, RELAY_COMMAND_ESTABLISH_INTRO, establish_intro_cell); returned_intro_circ = hs_circuitmap_get_intro_circ_v3_relay_side(&auth_key); returned_intro_circ = hs_circuitmap_get_intro_circ_v3_relay_side(&auth_key); tt_ptr_op(intro_circ, ==, returned_intro_circ); } Loading