aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-01-16 14:58:28 -0500
committerXiaoyi Zhang <zhangxy@google.com>2020-01-21 16:26:08 -0500
commit18b67bfc58b1c5657198e5d7e5cc9a99049b154e (patch)
tree9f5554aeb77e4dfae8d697b4714d9f0f84eff903 /googletest/include
parent8b4817e3df3746a20502a84580f661ac448821be (diff)
downloadgoogletest-18b67bfc58b1c5657198e5d7e5cc9a99049b154e.tar.gz
googletest-18b67bfc58b1c5657198e5d7e5cc9a99049b154e.tar.bz2
googletest-18b67bfc58b1c5657198e5d7e5cc9a99049b154e.zip
Googletest export
Add extra filtering so that the reported message differentiates between the case where INSTANTIATE_TEST_SUITE_P is missing vs. the case where TEST_P is missing. PiperOrigin-RevId: 290114508
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/internal/gtest-param-util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-param-util.h b/googletest/include/gtest/internal/gtest-param-util.h
index 65aa9568..7f7a13bf 100644
--- a/googletest/include/gtest/internal/gtest-param-util.h
+++ b/googletest/include/gtest/internal/gtest-param-util.h
@@ -483,7 +483,7 @@ struct MarkAsIgnored {
};
GTEST_API_ void InsertSyntheticTestCase(const std::string& name,
- CodeLocation location);
+ CodeLocation location, bool has_test_p);
// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
//
@@ -600,7 +600,8 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase {
if (!generated_instantiations) {
// There are no generaotrs, or they all generate nothing ...
- InsertSyntheticTestCase(GetTestSuiteName(), code_location_);
+ InsertSyntheticTestCase(GetTestSuiteName(), code_location_,
+ !tests_.empty());
}
} // RegisterTests