Fixed annoying warning in gtest: added 4th arg for INSTANTIATE_TEST_CASE_P macro...
[libcds.git] / test / stress / set / insdel_func / set_insdel_func.cpp
index 3fcbdac3287b9395289289db2e094abf8098604d..deddcf29fd66eba05552ff7a9e0c551e3886631d 100644 (file)
@@ -110,5 +110,13 @@ namespace set {
         return lf;
     }
 
-    INSTANTIATE_TEST_CASE_P( a, Set_InsDel_func_LF, ::testing::ValuesIn( Set_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, Set_InsDel_func_LF, ::testing::ValuesIn( Set_InsDel_func_LF::get_load_factors() ), get_test_parameter_name );
+#else
+    INSTANTIATE_TEST_CASE_P( a, Set_InsDel_func_LF, ::testing::ValuesIn( Set_InsDel_func_LF::get_load_factors() ) );
+#endif
 } // namespace set