Only run map test cases with max load factor
authorPeizhao Ou <peizhaoo@uci.edu>
Thu, 25 Jan 2018 20:07:42 +0000 (12:07 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Thu, 25 Jan 2018 20:07:42 +0000 (12:07 -0800)
test/stress/sequential/sequential-map/insdelfind/map_insdelfind.cpp

index 50ff406..2e2cd7c 100644 (file)
@@ -193,17 +193,19 @@ namespace map {
 
     std::vector<size_t> Map_InsDelFind_LF::get_load_factors()
     {
-        cds_test::config const& cfg = get_config( "map_insdelfind" );
+      cds_test::config const &cfg =
+          get_config("sequential_real_map_insdelfind");
 
-        s_nMaxLoadFactor = cfg.get_size_t( "MaxLoadFactor", s_nMaxLoadFactor );
-        if ( s_nMaxLoadFactor == 0 )
-            s_nMaxLoadFactor = 1;
+      s_nMaxLoadFactor = cfg.get_size_t("MaxLoadFactor", s_nMaxLoadFactor);
+      if (s_nMaxLoadFactor == 0)
+        s_nMaxLoadFactor = 1;
 
-        std::vector<size_t> lf;
-        for ( size_t n = 1; n <= s_nMaxLoadFactor; n *= 2 )
-            lf.push_back( n );
+      // Only test with max load factor.
+      std::vector<size_t> lf = {s_nMaxLoadFactor};
+//      for (size_t n = 1; n <= s_nMaxLoadFactor; n *= 2)
+//        lf.push_back(n);
 
-        return lf;
+      return lf;
     }
 
 #ifdef CDSTEST_GTEST_INSTANTIATE_TEST_CASE_P_HAS_4TH_ARG