]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: update tests for pthread init changes 4810/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 12 Aug 2019 18:15:05 +0000 (18:15 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 16 Sep 2019 16:12:04 +0000 (16:12 +0000)
Need to init frr_pthreads manually in tests now.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
tests/bgpd/test_aspath.c
tests/bgpd/test_capability.c
tests/bgpd/test_peer_attr.c

index b2612892f99cfd6c88718f406f330b6f480861fd..b5db36703a58f75d15e6ebaf6d7f03d3d1b089af 100644 (file)
@@ -1379,6 +1379,7 @@ int main(void)
 
        i = 0;
 
+       frr_pthread_init();
        bgp_pthreads_init();
        bgp_pth_ka->running = true;
 
index 968f9ac445d25b610730574d9199aca94a5b189f..db1cf0611d4eeb117fe6e14e9db7b954c30ecafd 100644 (file)
@@ -916,6 +916,7 @@ int main(void)
        vrf_init(NULL, NULL, NULL, NULL, NULL);
        bgp_option_set(BGP_OPT_NO_LISTEN);
 
+       frr_pthread_init();
        bgp_pthreads_init();
        bgp_pth_ka->running = true;
 
index 8e1b62ac15e513a9d5fc52df07e3715a0445bb6a..e5d3030ed1e0565b1b48fb1bad4fbabd784f768c 100644 (file)
@@ -1391,6 +1391,7 @@ static void bgp_startup(void)
        bgp_master_init(master);
        bgp_option_set(BGP_OPT_NO_LISTEN);
        vrf_init(NULL, NULL, NULL, NULL, NULL);
+       frr_pthread_init();
        bgp_init(0);
        bgp_pthreads_run();
 }