Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P #13073

Open
yurivict opened this issue Oct 15, 2024 · 0 comments

Comments

@yurivict
Copy link

Build fails:

env/env_basic_test.cc:104:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  104 | INSTANTIATE_TEST_CASE_P(EnvDefault, EnvBasicTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
env/env_basic_test.cc:106:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  106 | INSTANTIATE_TEST_CASE_P(EnvDefault, EnvMoreTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
env/env_basic_test.cc:109:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  109 | INSTANTIATE_TEST_CASE_P(MockEnv, EnvBasicTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
env/env_basic_test.cc:113:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  113 | INSTANTIATE_TEST_CASE_P(EncryptedEnv, EnvBasicTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
env/env_basic_test.cc:115:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  115 | INSTANTIATE_TEST_CASE_P(EncryptedEnv, EnvMoreTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
env/env_basic_test.cc:118:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  118 | INSTANTIATE_TEST_CASE_P(MemEnv, EnvBasicTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
env/env_basic_test.cc:143:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  143 | INSTANTIATE_TEST_CASE_P(CustomEnv, EnvBasicTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
env/env_basic_test.cc:146:1: error: 'InstantiateTestCase_P_IsDeprecated' is deprecated: INSTANTIATE_TEST_CASE_P is deprecated, please use INSTANTIATE_TEST_SUITE_P [-Werror,-Wdeprecated-declarations]
  146 | INSTANTIATE_TEST_CASE_P(CustomEnv, EnvMoreTestWithParam,
      | ^
/usr/local/include/gtest/gtest-param-test.h:539:38: note: expanded from macro 'INSTANTIATE_TEST_CASE_P'
  539 |   static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
      |                                      ^
/usr/local/include/gtest/internal/gtest-internal.h:1244:1: note: 'InstantiateTestCase_P_IsDeprecated' has been explicitly marked deprecated here
 1244 | GTEST_INTERNAL_DEPRECATED(
      | ^
/usr/local/include/gtest/internal/gtest-port.h:2383:59: note: expanded from macro 'GTEST_INTERNAL_DEPRECATED'
 2383 | #define GTEST_INTERNAL_DEPRECATED(message) __attribute__((deprecated(message)))
      |                                                           ^
8 errors generated.

Version: 9.7.2
clang-18
FreeBSD 14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant