]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: BGP unit tests to set BGP_OPT_NO_LISTEN so they can run
authorPaul Jakma <paul@quagga.net>
Thu, 14 Jun 2012 09:42:39 +0000 (10:42 +0100)
committerPaul Jakma <paul@quagga.net>
Tue, 19 Jun 2012 12:40:22 +0000 (13:40 +0100)
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.

tests/aspath_test.c
tests/bgp_capability_test.c
tests/bgp_mp_attr_test.c
tests/bgp_mpath_test.c

index 83eb9d808e4dc88b1fd2fac443223a0fc78a2b4d..9170455fbdcb6d20b7d9087c5422a2f6715d83ac 100644 (file)
@@ -1259,6 +1259,7 @@ main (void)
   int i = 0;
   bgp_master_init ();
   master = bm->master;
+  bgp_option_set (BGP_OPT_NO_LISTEN);
   bgp_attr_init ();
   
   while (test_segments[i].name)
index 83da2e48fca768d04dfd4a980c0a619c04d91867..65c6a7002b65d352659112d81376ea644398580e 100644 (file)
@@ -618,6 +618,7 @@ main (void)
   
   master = thread_master_create ();
   bgp_master_init ();
+  bgp_option_set (BGP_OPT_NO_LISTEN);
   
   if (fileno (stdout) >= 0) 
     tty = isatty (fileno (stdout));
index 1a48f4b74c5eaedf13bf647570dea33572282c40..f086740fd3bd122e6947c8bf069e483869f974cb 100644 (file)
@@ -515,6 +515,7 @@ main (void)
   
   master = thread_master_create ();
   bgp_master_init ();
+  bgp_option_set (BGP_OPT_NO_LISTEN);
   
   if (fileno (stdout) >= 0) 
     tty = isatty (fileno (stdout));
index 15e450a20ba7098f2fd71de40bd1903d83101acd..3d0ecb78bff2dd05cd450971b1cabebe0ceec6ea 100644 (file)
@@ -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;