Fixed annoying warning in gtest: added 4th arg for INSTANTIATE_TEST_CASE_P macro...
[libcds.git] / test / stress / map / insdel_func / map_insdel_func.cpp
index 5d3574320f27588a868d218d48795bdabdfb7be1..15983f581cbe7fe3ebbb2f2475e8d603121892fd 100644 (file)
@@ -122,5 +122,14 @@ namespace map {
         return lf;
     }
 
-    INSTANTIATE_TEST_CASE_P( a, Map_InsDel_func_LF, ::testing::ValuesIn( Map_InsDel_func_LF::get_load_factors()));
+#ifdef CDSTEST_GTEST_INSTANTIATE_TEST_CASE_P_HAS_4TH_ARG
+    static std::string get_test_parameter_name( testing::TestParamInfo<size_t> const& p )
+    {
+        return std::to_string( p.param );
+    }
+    INSTANTIATE_TEST_CASE_P( a, Map_InsDel_func_LF, ::testing::ValuesIn( Map_InsDel_func_LF::get_load_factors() ), get_test_parameter_name );
+#else
+    INSTANTIATE_TEST_CASE_P( a, Map_InsDel_func_LF, ::testing::ValuesIn( Map_InsDel_func_LF::get_load_factors() ) );
+#endif
+
 } // namespace map