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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user