[flang-commits] [flang] 17ef101 - [flang] s/TYPED_TEST_CASE/TYPED_TEST_SUITE/ as the former is deprecated

Benjamin Kramer via flang-commits flang-commits at lists.llvm.org
Fri May 14 11:40:58 PDT 2021


Author: Benjamin Kramer
Date: 2021-05-14T20:39:48+02:00
New Revision: 17ef1017f0dc4b32abc5f8b4747429a0b9c7c949

URL: https://github.com/llvm/llvm-project/commit/17ef1017f0dc4b32abc5f8b4747429a0b9c7c949
DIFF: https://github.com/llvm/llvm-project/commit/17ef1017f0dc4b32abc5f8b4747429a0b9c7c949.diff

LOG: [flang] s/TYPED_TEST_CASE/TYPED_TEST_SUITE/ as the former is deprecated

Added: 
    

Modified: 
    flang/unittests/RuntimeGTest/CharacterTest.cpp

Removed: 
    


################################################################################
diff  --git a/flang/unittests/RuntimeGTest/CharacterTest.cpp b/flang/unittests/RuntimeGTest/CharacterTest.cpp
index 7d90ebf0a5fc..ff43e99ae61c 100644
--- a/flang/unittests/RuntimeGTest/CharacterTest.cpp
+++ b/flang/unittests/RuntimeGTest/CharacterTest.cpp
@@ -111,7 +111,7 @@ struct CharacterComparisonTests : public ::testing::Test {
 };
 
 using CharacterTypes = ::testing::Types<char, char16_t, char32_t>;
-TYPED_TEST_CASE(CharacterComparisonTests, CharacterTypes);
+TYPED_TEST_SUITE(CharacterComparisonTests, CharacterTypes);
 
 TYPED_TEST(CharacterComparisonTests, CompareCharacters) {
   for (auto &[x, y, xBytes, yBytes, expect] : this->parameters) {
@@ -204,7 +204,7 @@ void RunExtremumTests(const char *which,
 }
 
 template <typename CHAR> struct ExtremumTests : public ::testing::Test {};
-TYPED_TEST_CASE(ExtremumTests, CharacterTypes);
+TYPED_TEST_SUITE(ExtremumTests, CharacterTypes);
 
 TYPED_TEST(ExtremumTests, MinTests) {
   static std::vector<ExtremumTestCase> tests{
@@ -284,7 +284,7 @@ void RunSearchTests(const char *which,
 }
 
 template <typename CHAR> struct SearchTests : public ::testing::Test {};
-TYPED_TEST_CASE(SearchTests, CharacterTypes);
+TYPED_TEST_SUITE(SearchTests, CharacterTypes);
 
 TYPED_TEST(SearchTests, IndexTests) {
   static SearchFunctions functions{


        


More information about the flang-commits mailing list