]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Filter unit test uncertainty hack
authorMaria Matejka <mq@ucw.cz>
Wed, 26 Jun 2024 16:30:17 +0000 (18:30 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 26 Jun 2024 16:30:17 +0000 (18:30 +0200)
filter/filter_test.c

index fe977e8d34b62c93ec57aded83c8a9374c2e1ed3..83501ba35458991c064aabcea855e60d4a0617ac 100644 (file)
@@ -83,6 +83,9 @@ main(int argc, char *argv[])
   bt_test_suite_arg_extra(t_reconfig, BT_CONFIG_FILE, 0, BT_TIMEOUT, "Testing reconfiguration back");
   bt_test_suite_arg_extra(t_reconfig, BT_CONFIG_FILE, 0, BT_TIMEOUT, "Testing reconfiguration to the same file");
 
+  /* Hack: this should be enough to let the other thread run and make the ROA table converge */
+  birdloop_yield();
+
   struct f_bt_test_suite *t;
   WALK_LIST(t, OBSREF_GET(config)->tests)
     bt_test_suite_base(run_function, t->fn_name, t, 0, BT_TIMEOUT, "%s", t->dsc);