fix the behavior in case of non-linux kernel stack (i.e., freebsd at the moment) dce-1.3
authorHajime Tazaki <tazaki@sfc.wide.ad.jp>
Wed, 19 Mar 2014 13:55:30 +0900
changeset 57 042e2129d252
parent 56 e5df15541f8d
child 58 bf86978758a6
fix the behavior in case of non-linux kernel stack (i.e., freebsd at the moment)
test/dce-umip-test.cc
--- a/test/dce-umip-test.cc	Wed Jan 15 11:21:09 2014 +0900
+++ b/test/dce-umip-test.cc	Wed Mar 19 13:55:30 2014 +0900
@@ -316,6 +316,7 @@
   // For MNN
   RunIp (mnn.Get (0), Seconds (0.11), "link set lo up");
   RunIp (mnn.Get (0), Seconds (0.11), "link set sim0 up");
+  RunIp (mnn.Get (0), Seconds (10.13), "addr list");
 
   // For CN
   RunIp (cn.Get (0), Seconds (0.11), "link set lo up");
@@ -476,8 +477,14 @@
   };
 
   ::system ("/bin/rm -rf files-*/usr/local/etc/*.pid");
+  // for the moment: not supported quagga for freebsd
+  std::string filePath = SearchExecFile ("DCE_PATH", "liblinux.so", 0);
   for (unsigned int i = 0; i < sizeof(tests) / sizeof(testPair); i++)
     {
+      if (filePath.length () <= 0)
+        {
+          continue;
+        }
       AddTestCase (new DceUmipTestCase (std::string (tests[i].name),
                                         Seconds (tests[i].duration)),
                    TestCase::QUICK);