Skip to content

Commit

Permalink
Replace gtest macro INSTANTIATE_TEST_CASE_P (deprecated) by INSTANTIA…
Browse files Browse the repository at this point in the history
…TE_TEST_SUITE_P
  • Loading branch information
kelson42 committed Oct 15, 2023
1 parent bd8f79c commit 06c6f55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/error_in_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ TEST_P(FaultyItemErrorTest, faultyItem)

// It would be more natural to put the `#if defined` only around the
// discarded values, but when crosscompiling on Windows, compiler fail to
// understand ``#if defined` when used inside the `INSTANTIATE_TEST_CASE_P`
// understand ``#if defined` when used inside the `INSTANTIATE_TEST_SUITE_P`
// macro. I suspect some macro definition conflicts.
#if defined(ENABLE_XAPIAN)
INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
CreatorError,
FaultyItemErrorTest,
::testing::Values(
Expand All @@ -200,7 +200,7 @@ ::testing::Values(
ERRORKIND::GET_INDEXDATA
));
#else
INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
CreatorError,
FaultyItemErrorTest,
::testing::Values(
Expand Down Expand Up @@ -354,10 +354,10 @@ TEST_P(FaultyDelayedItemErrorTest, faultyUnfinishedCreator)
}
// It would be more natural to put the `#if defined` only around the
// discarded values, but when crosscompiling on Windows, compiler fail to
// understand ``#if defined` when used inside the `INSTANTIATE_TEST_CASE_P`
// understand ``#if defined` when used inside the `INSTANTIATE_TEST_SUITE_P`
// macro. I suspect some macro definition conflicts.
#if defined(ENABLE_XAPIAN)
INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
CreatorError,
FaultyDelayedItemErrorTest,
::testing::Values(
Expand All @@ -372,7 +372,7 @@ ::testing::Values(
ERRORKIND::GET_INDEXDATA_POSITION
));
#else
INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_SUITE_P(
CreatorError,
FaultyDelayedItemErrorTest,
::testing::Values(
Expand Down

0 comments on commit 06c6f55

Please sign in to comment.