signals icon indicating copy to clipboard operation
signals copied to clipboard

TYPED_TEST_CASE is deprecated, please use TYPED_TEST_SUITE

Open anb0s opened this issue 5 years ago • 1 comments

I'm facing compile error if compiling with Googletest 1.10 or master/latest:

---------- ERRORS occurred while compiling file D:\git\s7p\work3\s7p.base\vdk\signals-master\tests\tests.cpp
In file included from D:\git\s7p\work3\s7p.base\google\test-1.10\googletest\include/gtest/gtest.h:71,
                 from D:/git/s7p/work3/s7p.base/vdk/signals-master/tests/tests.cpp:14:
D:\git\s7p\work3\s7p.base\google\test-1.10\googletest\include/gtest/gtest-typed-test.h:227:38: error: 'constexpr bool testing::internal::TypedTestCaseIsDeprecated()' is deprecated: TYPED_TEST_CASE is deprecated, please use TYPED_TEST_SUITE [-Werror=deprecated-declarations]
  227 |   static_assert(::testing::internal::TypedTestCaseIsDeprecated(), ""); \
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
D:/git/s7p/work3/s7p.base/vdk/signals-master/tests/tests.cpp:201:1: note: in expansion of macro 'TYPED_TEST_CASE'
  201 | TYPED_TEST_CASE(SignalsTest, TestTypes);
      | ^~~~~~~~~~~~~~~

Renaming from TYPED_TEST_CASE to TYPED_TEST_SUITE solves the problem.

anb0s avatar Dec 02 '19 12:12 anb0s

Do you have plans to update for googletest 1.10 or master?

If yes i can provide a PR for this...

anb0s avatar Apr 02 '20 13:04 anb0s