test_circuitlist.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. /* Copyright (c) 2013-2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. #define TOR_CHANNEL_INTERNAL_
  4. #define CIRCUITBUILD_PRIVATE
  5. #define CIRCUITLIST_PRIVATE
  6. #define HS_CIRCUITMAP_PRIVATE
  7. #include "or.h"
  8. #include "channel.h"
  9. #include "circuitbuild.h"
  10. #include "circuitlist.h"
  11. #include "circuitmux_ewma.h"
  12. #include "hs_circuitmap.h"
  13. #include "test.h"
  14. #include "log_test_helpers.h"
  15. static channel_t *
  16. new_fake_channel(void)
  17. {
  18. channel_t *chan = tor_malloc_zero(sizeof(channel_t));
  19. channel_init(chan);
  20. return chan;
  21. }
  22. static struct {
  23. int ncalls;
  24. void *cmux;
  25. void *circ;
  26. cell_direction_t dir;
  27. } cam;
  28. static void
  29. circuitmux_attach_mock(circuitmux_t *cmux, circuit_t *circ,
  30. cell_direction_t dir)
  31. {
  32. ++cam.ncalls;
  33. cam.cmux = cmux;
  34. cam.circ = circ;
  35. cam.dir = dir;
  36. }
  37. static struct {
  38. int ncalls;
  39. void *cmux;
  40. void *circ;
  41. } cdm;
  42. static void
  43. circuitmux_detach_mock(circuitmux_t *cmux, circuit_t *circ)
  44. {
  45. ++cdm.ncalls;
  46. cdm.cmux = cmux;
  47. cdm.circ = circ;
  48. }
  49. #define GOT_CMUX_ATTACH(mux_, circ_, dir_) do { \
  50. tt_int_op(cam.ncalls, OP_EQ, 1); \
  51. tt_ptr_op(cam.cmux, OP_EQ, (mux_)); \
  52. tt_ptr_op(cam.circ, OP_EQ, (circ_)); \
  53. tt_int_op(cam.dir, OP_EQ, (dir_)); \
  54. memset(&cam, 0, sizeof(cam)); \
  55. } while (0)
  56. #define GOT_CMUX_DETACH(mux_, circ_) do { \
  57. tt_int_op(cdm.ncalls, OP_EQ, 1); \
  58. tt_ptr_op(cdm.cmux, OP_EQ, (mux_)); \
  59. tt_ptr_op(cdm.circ, OP_EQ, (circ_)); \
  60. memset(&cdm, 0, sizeof(cdm)); \
  61. } while (0)
  62. static void
  63. test_clist_maps(void *arg)
  64. {
  65. channel_t *ch1 = new_fake_channel();
  66. channel_t *ch2 = new_fake_channel();
  67. channel_t *ch3 = new_fake_channel();
  68. or_circuit_t *or_c1=NULL, *or_c2=NULL;
  69. (void) arg;
  70. MOCK(circuitmux_attach_circuit, circuitmux_attach_mock);
  71. MOCK(circuitmux_detach_circuit, circuitmux_detach_mock);
  72. memset(&cam, 0, sizeof(cam));
  73. memset(&cdm, 0, sizeof(cdm));
  74. tt_assert(ch1);
  75. tt_assert(ch2);
  76. tt_assert(ch3);
  77. ch1->cmux = tor_malloc(1);
  78. ch2->cmux = tor_malloc(1);
  79. ch3->cmux = tor_malloc(1);
  80. or_c1 = or_circuit_new(100, ch2);
  81. tt_assert(or_c1);
  82. GOT_CMUX_ATTACH(ch2->cmux, or_c1, CELL_DIRECTION_IN);
  83. tt_int_op(or_c1->p_circ_id, OP_EQ, 100);
  84. tt_ptr_op(or_c1->p_chan, OP_EQ, ch2);
  85. or_c2 = or_circuit_new(100, ch1);
  86. tt_assert(or_c2);
  87. GOT_CMUX_ATTACH(ch1->cmux, or_c2, CELL_DIRECTION_IN);
  88. tt_int_op(or_c2->p_circ_id, OP_EQ, 100);
  89. tt_ptr_op(or_c2->p_chan, OP_EQ, ch1);
  90. circuit_set_n_circid_chan(TO_CIRCUIT(or_c1), 200, ch1);
  91. GOT_CMUX_ATTACH(ch1->cmux, or_c1, CELL_DIRECTION_OUT);
  92. circuit_set_n_circid_chan(TO_CIRCUIT(or_c2), 200, ch2);
  93. GOT_CMUX_ATTACH(ch2->cmux, or_c2, CELL_DIRECTION_OUT);
  94. tt_ptr_op(circuit_get_by_circid_channel(200, ch1), OP_EQ, TO_CIRCUIT(or_c1));
  95. tt_ptr_op(circuit_get_by_circid_channel(200, ch2), OP_EQ, TO_CIRCUIT(or_c2));
  96. tt_ptr_op(circuit_get_by_circid_channel(100, ch2), OP_EQ, TO_CIRCUIT(or_c1));
  97. /* Try the same thing again, to test the "fast" path. */
  98. tt_ptr_op(circuit_get_by_circid_channel(100, ch2), OP_EQ, TO_CIRCUIT(or_c1));
  99. tt_assert(circuit_id_in_use_on_channel(100, ch2));
  100. tt_assert(! circuit_id_in_use_on_channel(101, ch2));
  101. /* Try changing the circuitid and channel of that circuit. */
  102. circuit_set_p_circid_chan(or_c1, 500, ch3);
  103. GOT_CMUX_DETACH(ch2->cmux, TO_CIRCUIT(or_c1));
  104. GOT_CMUX_ATTACH(ch3->cmux, TO_CIRCUIT(or_c1), CELL_DIRECTION_IN);
  105. tt_ptr_op(circuit_get_by_circid_channel(100, ch2), OP_EQ, NULL);
  106. tt_assert(! circuit_id_in_use_on_channel(100, ch2));
  107. tt_ptr_op(circuit_get_by_circid_channel(500, ch3), OP_EQ, TO_CIRCUIT(or_c1));
  108. /* Now let's see about destroy handling. */
  109. tt_assert(! circuit_id_in_use_on_channel(205, ch2));
  110. tt_assert(circuit_id_in_use_on_channel(200, ch2));
  111. channel_note_destroy_pending(ch2, 200);
  112. channel_note_destroy_pending(ch2, 205);
  113. channel_note_destroy_pending(ch1, 100);
  114. tt_assert(circuit_id_in_use_on_channel(205, ch2))
  115. tt_assert(circuit_id_in_use_on_channel(200, ch2));
  116. tt_assert(circuit_id_in_use_on_channel(100, ch1));
  117. tt_assert(TO_CIRCUIT(or_c2)->n_delete_pending != 0);
  118. tt_ptr_op(circuit_get_by_circid_channel(200, ch2), OP_EQ, TO_CIRCUIT(or_c2));
  119. tt_ptr_op(circuit_get_by_circid_channel(100, ch1), OP_EQ, TO_CIRCUIT(or_c2));
  120. /* Okay, now free ch2 and make sure that the circuit ID is STILL not
  121. * usable, because we haven't declared the destroy to be nonpending */
  122. tt_int_op(cdm.ncalls, OP_EQ, 0);
  123. circuit_free_(TO_CIRCUIT(or_c2));
  124. or_c2 = NULL; /* prevent free */
  125. tt_int_op(cdm.ncalls, OP_EQ, 2);
  126. memset(&cdm, 0, sizeof(cdm));
  127. tt_assert(circuit_id_in_use_on_channel(200, ch2));
  128. tt_assert(circuit_id_in_use_on_channel(100, ch1));
  129. tt_ptr_op(circuit_get_by_circid_channel(200, ch2), OP_EQ, NULL);
  130. tt_ptr_op(circuit_get_by_circid_channel(100, ch1), OP_EQ, NULL);
  131. /* Now say that the destroy is nonpending */
  132. channel_note_destroy_not_pending(ch2, 200);
  133. tt_ptr_op(circuit_get_by_circid_channel(200, ch2), OP_EQ, NULL);
  134. channel_note_destroy_not_pending(ch1, 100);
  135. tt_ptr_op(circuit_get_by_circid_channel(100, ch1), OP_EQ, NULL);
  136. tt_assert(! circuit_id_in_use_on_channel(200, ch2));
  137. tt_assert(! circuit_id_in_use_on_channel(100, ch1));
  138. done:
  139. if (or_c1)
  140. circuit_free_(TO_CIRCUIT(or_c1));
  141. if (or_c2)
  142. circuit_free_(TO_CIRCUIT(or_c2));
  143. if (ch1)
  144. tor_free(ch1->cmux);
  145. if (ch2)
  146. tor_free(ch2->cmux);
  147. if (ch3)
  148. tor_free(ch3->cmux);
  149. tor_free(ch1);
  150. tor_free(ch2);
  151. tor_free(ch3);
  152. UNMOCK(circuitmux_attach_circuit);
  153. UNMOCK(circuitmux_detach_circuit);
  154. }
  155. static void
  156. test_rend_token_maps(void *arg)
  157. {
  158. or_circuit_t *c1, *c2, *c3, *c4;
  159. origin_circuit_t *c5;
  160. const uint8_t tok1[REND_TOKEN_LEN] = "The cat can't tell y";
  161. const uint8_t tok2[REND_TOKEN_LEN] = "ou its name, and it ";
  162. const uint8_t tok3[REND_TOKEN_LEN] = "doesn't really care.";
  163. /* -- Adapted from a quote by Fredrik Lundh. */
  164. (void)arg;
  165. (void)tok1; //xxxx
  166. hs_circuitmap_init();
  167. c1 = or_circuit_new(0, NULL);
  168. c2 = or_circuit_new(0, NULL);
  169. c3 = or_circuit_new(0, NULL);
  170. c4 = or_circuit_new(0, NULL);
  171. c5 = origin_circuit_new();
  172. /* Make sure we really filled up the tok* variables */
  173. tt_int_op(tok1[REND_TOKEN_LEN-1], OP_EQ, 'y');
  174. tt_int_op(tok2[REND_TOKEN_LEN-1], OP_EQ, ' ');
  175. tt_int_op(tok3[REND_TOKEN_LEN-1], OP_EQ, '.');
  176. /* No maps; nothing there. */
  177. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok1));
  178. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok1));
  179. hs_circuitmap_register_rend_circ_relay_side(c1, tok1);
  180. hs_circuitmap_register_intro_circ_v2_relay_side(c2, tok2);
  181. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok3));
  182. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok3));
  183. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok2));
  184. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok1));
  185. /* Without purpose set, we don't get the circuits */
  186. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok1));
  187. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok2));
  188. c1->base_.purpose = CIRCUIT_PURPOSE_REND_POINT_WAITING;
  189. c2->base_.purpose = CIRCUIT_PURPOSE_INTRO_POINT;
  190. /* Okay, make sure they show up now. */
  191. tt_ptr_op(c1, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok1));
  192. tt_ptr_op(c2, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok2));
  193. /* Two items at the same place with the same token. */
  194. c3->base_.purpose = CIRCUIT_PURPOSE_REND_POINT_WAITING;
  195. hs_circuitmap_register_rend_circ_relay_side(c3, tok2);
  196. tt_ptr_op(c2, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok2));
  197. tt_ptr_op(c3, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok2));
  198. /* Marking a circuit makes it not get returned any more */
  199. circuit_mark_for_close(TO_CIRCUIT(c1), END_CIRC_REASON_FINISHED);
  200. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok1));
  201. circuit_free_(TO_CIRCUIT(c1));
  202. c1 = NULL;
  203. /* Freeing a circuit makes it not get returned any more. */
  204. circuit_free_(TO_CIRCUIT(c2));
  205. c2 = NULL;
  206. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok2));
  207. /* c3 -- are you still there? */
  208. tt_ptr_op(c3, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok2));
  209. /* Change its cookie. This never happens in Tor per se, but hey. */
  210. c3->base_.purpose = CIRCUIT_PURPOSE_INTRO_POINT;
  211. hs_circuitmap_register_intro_circ_v2_relay_side(c3, tok3);
  212. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok2));
  213. tt_ptr_op(c3, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok3));
  214. /* Now replace c3 with c4. */
  215. c4->base_.purpose = CIRCUIT_PURPOSE_INTRO_POINT;
  216. hs_circuitmap_register_intro_circ_v2_relay_side(c4, tok3);
  217. tt_ptr_op(c4, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok3));
  218. tt_ptr_op(TO_CIRCUIT(c3)->hs_token, OP_EQ, NULL);
  219. tt_ptr_op(TO_CIRCUIT(c4)->hs_token, OP_NE, NULL);
  220. tt_mem_op(TO_CIRCUIT(c4)->hs_token->token, OP_EQ, tok3, REND_TOKEN_LEN);
  221. /* Now clear c4's cookie. */
  222. hs_circuitmap_remove_circuit(TO_CIRCUIT(c4));
  223. tt_ptr_op(TO_CIRCUIT(c4)->hs_token, OP_EQ, NULL);
  224. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok3));
  225. /* Now let's do a check for the client-side rend circuitmap */
  226. c5->base_.purpose = CIRCUIT_PURPOSE_C_ESTABLISH_REND;
  227. hs_circuitmap_register_rend_circ_client_side(c5, tok1);
  228. tt_ptr_op(c5, OP_EQ, hs_circuitmap_get_rend_circ_client_side(tok1));
  229. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_client_side(tok2));
  230. done:
  231. if (c1)
  232. circuit_free_(TO_CIRCUIT(c1));
  233. if (c2)
  234. circuit_free_(TO_CIRCUIT(c2));
  235. if (c3)
  236. circuit_free_(TO_CIRCUIT(c3));
  237. if (c4)
  238. circuit_free_(TO_CIRCUIT(c4));
  239. if (c5)
  240. circuit_free_(TO_CIRCUIT(c5));
  241. }
  242. static void
  243. mock_channel_dump_statistics(channel_t *chan, int severity)
  244. {
  245. (void)chan;
  246. (void)severity;
  247. }
  248. static void
  249. test_pick_circid(void *arg)
  250. {
  251. bitarray_t *ba = NULL;
  252. channel_t *chan1, *chan2;
  253. circid_t circid;
  254. int i;
  255. (void) arg;
  256. MOCK(channel_dump_statistics, mock_channel_dump_statistics);
  257. chan1 = tor_malloc_zero(sizeof(channel_t));
  258. chan2 = tor_malloc_zero(sizeof(channel_t));
  259. chan2->wide_circ_ids = 1;
  260. chan1->cmux = circuitmux_alloc();
  261. chan2->cmux = circuitmux_alloc();
  262. /* CIRC_ID_TYPE_NEITHER is supposed to create a warning. */
  263. chan1->circ_id_type = CIRC_ID_TYPE_NEITHER;
  264. setup_full_capture_of_logs(LOG_WARN);
  265. tt_int_op(0, OP_EQ, get_unique_circ_id_by_chan(chan1));
  266. expect_single_log_msg_containing("Trying to pick a circuit ID for a "
  267. "connection from a client with no identity.");
  268. teardown_capture_of_logs();
  269. /* Basic tests, with no collisions */
  270. chan1->circ_id_type = CIRC_ID_TYPE_LOWER;
  271. for (i = 0; i < 50; ++i) {
  272. circid = get_unique_circ_id_by_chan(chan1);
  273. tt_uint_op(0, OP_LT, circid);
  274. tt_uint_op(circid, OP_LT, (1<<15));
  275. }
  276. chan1->circ_id_type = CIRC_ID_TYPE_HIGHER;
  277. for (i = 0; i < 50; ++i) {
  278. circid = get_unique_circ_id_by_chan(chan1);
  279. tt_uint_op((1<<15), OP_LT, circid);
  280. tt_uint_op(circid, OP_LT, (1<<16));
  281. }
  282. chan2->circ_id_type = CIRC_ID_TYPE_LOWER;
  283. for (i = 0; i < 50; ++i) {
  284. circid = get_unique_circ_id_by_chan(chan2);
  285. tt_uint_op(0, OP_LT, circid);
  286. tt_uint_op(circid, OP_LT, (1u<<31));
  287. }
  288. chan2->circ_id_type = CIRC_ID_TYPE_HIGHER;
  289. for (i = 0; i < 50; ++i) {
  290. circid = get_unique_circ_id_by_chan(chan2);
  291. tt_uint_op((1u<<31), OP_LT, circid);
  292. }
  293. /* Now make sure that we can behave well when we are full up on circuits */
  294. chan1->circ_id_type = CIRC_ID_TYPE_LOWER;
  295. chan2->circ_id_type = CIRC_ID_TYPE_LOWER;
  296. chan1->wide_circ_ids = chan2->wide_circ_ids = 0;
  297. ba = bitarray_init_zero((1<<15));
  298. for (i = 0; i < (1<<15); ++i) {
  299. circid = get_unique_circ_id_by_chan(chan1);
  300. if (circid == 0) {
  301. tt_int_op(i, OP_GT, (1<<14));
  302. break;
  303. }
  304. tt_uint_op(circid, OP_LT, (1<<15));
  305. tt_assert(! bitarray_is_set(ba, circid));
  306. bitarray_set(ba, circid);
  307. channel_mark_circid_unusable(chan1, circid);
  308. }
  309. tt_int_op(i, OP_LT, (1<<15));
  310. /* Make sure that being full on chan1 does not interfere with chan2 */
  311. for (i = 0; i < 100; ++i) {
  312. circid = get_unique_circ_id_by_chan(chan2);
  313. tt_uint_op(circid, OP_GT, 0);
  314. tt_uint_op(circid, OP_LT, (1<<15));
  315. channel_mark_circid_unusable(chan2, circid);
  316. }
  317. done:
  318. circuitmux_free(chan1->cmux);
  319. circuitmux_free(chan2->cmux);
  320. tor_free(chan1);
  321. tor_free(chan2);
  322. bitarray_free(ba);
  323. circuit_free_all();
  324. teardown_capture_of_logs();
  325. UNMOCK(channel_dump_statistics);
  326. }
  327. /** Test that the circuit pools of our HS circuitmap are isolated based on
  328. * their token type. */
  329. static void
  330. test_hs_circuitmap_isolation(void *arg)
  331. {
  332. or_circuit_t *circ1 = NULL;
  333. origin_circuit_t *circ2 = NULL;
  334. or_circuit_t *circ3 = NULL;
  335. origin_circuit_t *circ4 = NULL;
  336. (void)arg;
  337. hs_circuitmap_init();
  338. {
  339. const uint8_t tok1[REND_TOKEN_LEN] = "bet i got some of th";
  340. circ1 = or_circuit_new(0, NULL);
  341. tt_assert(circ1);
  342. circ1->base_.purpose = CIRCUIT_PURPOSE_REND_POINT_WAITING;
  343. /* check that circuitmap is empty right? */
  344. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok1));
  345. /* Register circ1 with tok1 as relay-side rend circ */
  346. hs_circuitmap_register_rend_circ_relay_side(circ1, tok1);
  347. /* check that service-side getters don't work */
  348. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_service_side(tok1));
  349. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2_service_side(tok1));
  350. /* Check that the right getter works. */
  351. tt_ptr_op(circ1, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok1));
  352. }
  353. {
  354. const uint8_t tok2[REND_TOKEN_LEN] = "you dont know anythi";
  355. circ2 = origin_circuit_new();
  356. tt_assert(circ2);
  357. circ2->base_.purpose = CIRCUIT_PURPOSE_S_ESTABLISH_INTRO;
  358. circ3 = or_circuit_new(0, NULL);
  359. tt_assert(circ3);
  360. circ3->base_.purpose = CIRCUIT_PURPOSE_INTRO_POINT;
  361. circ4 = origin_circuit_new();
  362. tt_assert(circ4);
  363. circ4->base_.purpose = CIRCUIT_PURPOSE_S_ESTABLISH_INTRO;
  364. /* Register circ2 with tok2 as service-side intro v2 circ */
  365. hs_circuitmap_register_intro_circ_v2_service_side(circ2, tok2);
  366. /* Register circ3 with tok2 again but for different purpose */
  367. hs_circuitmap_register_intro_circ_v2_relay_side(circ3, tok2);
  368. /* Check that the getters work */
  369. tt_ptr_op(circ2, OP_EQ,
  370. hs_circuitmap_get_intro_circ_v2_service_side(tok2));
  371. tt_ptr_op(circ3, OP_EQ, hs_circuitmap_get_intro_circ_v2_relay_side(tok2));
  372. /* Register circ4 with tok2: it should override circ2 */
  373. hs_circuitmap_register_intro_circ_v2_service_side(circ4, tok2);
  374. /* check that relay-side getters don't work */
  375. tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_rend_circ_relay_side(tok2));
  376. /* Check that the getter returns circ4; the last circuit registered with
  377. * that token. */
  378. tt_ptr_op(circ4, OP_EQ,
  379. hs_circuitmap_get_intro_circ_v2_service_side(tok2));
  380. }
  381. done:
  382. circuit_free_(TO_CIRCUIT(circ1));
  383. circuit_free_(TO_CIRCUIT(circ2));
  384. circuit_free_(TO_CIRCUIT(circ3));
  385. circuit_free_(TO_CIRCUIT(circ4));
  386. }
  387. struct testcase_t circuitlist_tests[] = {
  388. { "maps", test_clist_maps, TT_FORK, NULL, NULL },
  389. { "rend_token_maps", test_rend_token_maps, TT_FORK, NULL, NULL },
  390. { "pick_circid", test_pick_circid, TT_FORK, NULL, NULL },
  391. { "hs_circuitmap_isolation", test_hs_circuitmap_isolation,
  392. TT_FORK, NULL, NULL },
  393. END_OF_TESTCASES
  394. };