Skip to content

TYPED_TEST_CASE is deprecated, please use TYPED_TEST_SUITE #6

@anb0s

Description

@anb0s

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions