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:53:50 +0900
changeset 77 7348eac9e5bb
parent 76 d861a604fe44
child 78 90bdeedcccf5
fix the behavior in case of non-linux kernel stack (i.e., freebsd at the moment)
test/dce-quagga-test.cc
--- a/test/dce-quagga-test.cc	Tue Jan 07 08:47:16 2014 +0900
+++ b/test/dce-quagga-test.cc	Wed Mar 19 13:53:50 2014 +0900
@@ -437,8 +437,14 @@
   ::system ("/bin/rm -rf files-*/usr/local/etc/*.pid");
   TypeId tid;
   bool kern = TypeId::LookupByNameFailSafe ("ns3::LinuxSocketFdFactory", &tid);
+  // 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 && (kern && tests[i].useKernel))
+        {
+          continue;
+        }
       AddTestCase (new DceQuaggaTestCase (std::string (tests[i].name),
                                           Seconds (tests[i].duration), tests[i].useKernel,
                                           (!kern && tests[i].useKernel)),