diff options
author | Abseil Team <absl-team@google.com> | 2019-10-09 18:14:17 -0400 |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-10-10 09:21:56 -0400 |
commit | 20b5b8ecc7a81d23b4716e22a2b35fd53379c8c6 (patch) | |
tree | 112322a7b2b59de35e9c48e17b2b6adfce2b3e2d /googletest/test/gtest_unittest.cc | |
parent | 5395345ca4f0c596110188688ed990e0de5a181c (diff) | |
download | googletest-20b5b8ecc7a81d23b4716e22a2b35fd53379c8c6.tar.gz googletest-20b5b8ecc7a81d23b4716e22a2b35fd53379c8c6.tar.bz2 googletest-20b5b8ecc7a81d23b4716e22a2b35fd53379c8c6.zip |
Googletest export
Add a compile time check to ensure that the parameters to TEST_P and INSTANTIATE_TEST_SUITE_P are not empty. Some compilers already fail in that case and, even where it works, it's likely to result in technically invalid code by virtue of creating reserved identifiers:
https://en.cppreference.com/w/cpp/language/identifiers
PiperOrigin-RevId: 273832263
Diffstat (limited to 'googletest/test/gtest_unittest.cc')
-rw-r--r-- | googletest/test/gtest_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 39749b7b..05ee1c70 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -5343,7 +5343,7 @@ TEST_P(CodeLocationForTESTP, Verify) { VERIFY_CODE_LOCATION; } -INSTANTIATE_TEST_SUITE_P(, CodeLocationForTESTP, Values(0)); +INSTANTIATE_TEST_SUITE_P(All, CodeLocationForTESTP, Values(0)); template <typename T> class CodeLocationForTYPEDTEST : public Test { |