Fixed annoying warning in gtest: added 4th arg for INSTANTIATE_TEST_CASE_P macro...
[libcds.git] / test / stress / set / insdel_find / set_insdelfind.cpp
index e35e8ea726e95f2d451b61a76b7761834606dabd..1b9296ca11f97db07517658f18b1abfb4a866089 100644 (file)
@@ -123,5 +123,14 @@ namespace set {
         return lf;
     }
 
-    INSTANTIATE_TEST_CASE_P( _, Set_InsDelFind_LF, ::testing::ValuesIn( Set_InsDelFind_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_InsDelFind_LF, ::testing::ValuesIn( Set_InsDelFind_LF::get_load_factors() ), get_test_parameter_name );
+#else
+    INSTANTIATE_TEST_CASE_P( a, Set_InsDelFind_LF, ::testing::ValuesIn( Set_InsDelFind_LF::get_load_factors() ) );
+#endif
+
 } // namespace set