1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Fixed main birdloop init in unit tests

Some unit tests weren't initializing the birdloop, trying to write the
birdloop ping into stdin. Fixed this and also forced stdin close on
startup of every test just to be sure that CI and local build behave the
same in this. (CI was failing on this while local build not.)
This commit is contained in:
Maria Matejka
2022-08-01 15:17:41 +02:00
parent f60f7dfdee
commit f1d6c66a78
3 changed files with 5 additions and 5 deletions

View File

@@ -54,7 +54,6 @@ t_ev_run_list(void)
int i;
olock_init();
birdloop_init();
rt_init();
io_init();
if_init();
@@ -81,9 +80,7 @@ main(int argc, char *argv[])
{
bt_init(argc, argv);
the_bird_lock();
bt_test_suite(t_ev_run_list, "Schedule and run 3 events in right order.");
the_bird_unlock();
return bt_exit_value();
}