summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-08-01 15:17:41 +0200
committerMaria Matejka <mq@ucw.cz>2022-08-01 15:17:41 +0200
commitf1d6c66a78758449f00ed709891e24ab3571cc9c (patch)
tree669215113540905f345f706d63952a9ed52fb457 /lib
parentf60f7dfdee556a12c47940bc6ec3113fdae46a5c (diff)
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.)
Diffstat (limited to 'lib')
-rw-r--r--lib/event_test.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/event_test.c b/lib/event_test.c
index 5385011a..612deb25 100644
--- a/lib/event_test.c
+++ b/lib/event_test.c
@@ -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();
}