diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-01-24 21:53:07 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-01-24 21:53:07 +0100 |
commit | cadc5f3377eec33c17e5cc230b0671c884c3fcca (patch) | |
tree | 662e839e85d8d8490c450c1824323760d61cf291 /tests/bgpd/test_capability.c | |
parent | bgpd: update pthreads to use lib changes (diff) | |
download | frr-cadc5f3377eec33c17e5cc230b0671c884c3fcca.tar.xz frr-cadc5f3377eec33c17e5cc230b0671c884c3fcca.zip |
tests: make tests happy for pthread changes
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'tests/bgpd/test_capability.c')
-rw-r--r-- | tests/bgpd/test_capability.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bgpd/test_capability.c b/tests/bgpd/test_capability.c index a5092708e..3d5518f3b 100644 --- a/tests/bgpd/test_capability.c +++ b/tests/bgpd/test_capability.c @@ -27,8 +27,9 @@ #include "memory.h" #include "queue.h" #include "filter.h" +#include "frr_pthread.h" -#include "bgpd/bgpd.h" +#include "bgpd/bgpd.c" #include "bgpd/bgp_open.h" #include "bgpd/bgp_debug.h" #include "bgpd/bgp_packet.h" @@ -915,6 +916,9 @@ int main(void) vrf_init(NULL, NULL, NULL, NULL); bgp_option_set(BGP_OPT_NO_LISTEN); + bgp_pthreads_init(); + frr_pthread_get(PTHREAD_KEEPALIVES)->running = true; + if (fileno(stdout) >= 0) tty = isatty(fileno(stdout)); |