summaryrefslogtreecommitdiff
path: root/tests/bgp_mpath_test.c
diff options
context:
space:
mode:
authorPaul Jakma <paul@quagga.net>2012-06-14 10:42:39 +0100
committerPaul Jakma <paul@quagga.net>2012-06-19 13:40:22 +0100
commitc9e4f8623642fc005c97830256000bef5680aa26 (patch)
tree00a40a75d31cf30727c6dabf8066054e72092647 /tests/bgp_mpath_test.c
parentcccbc0151883cfb4f43d6fa0a4a3caedc27e6cf5 (diff)
tests: BGP unit tests to set BGP_OPT_NO_LISTEN so they can run
BGP tests had been broken by auto-creation of listen socket. This allows them to run at least, though at least 1 test seems to have other breakage, aspath_test.
Diffstat (limited to 'tests/bgp_mpath_test.c')
-rw-r--r--tests/bgp_mpath_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bgp_mpath_test.c b/tests/bgp_mpath_test.c
index 15e450a2..3d0ecb78 100644
--- a/tests/bgp_mpath_test.c
+++ b/tests/bgp_mpath_test.c
@@ -378,7 +378,8 @@ global_test_init (void)
master = thread_master_create ();
zclient = zclient_new ();
bgp_master_init ();
-
+ bgp_option_set (BGP_OPT_NO_LISTEN);
+
if (fileno (stdout) >= 0)
tty = isatty (fileno (stdout));
return 0;