[llvm] c77da6f - [ADT] Fix MappedIteratorTest. (#67337)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 09:31:25 PDT 2023


Author: Ivan Kosarev
Date: 2023-09-25T17:31:21+01:00
New Revision: c77da6fbaa788863787f8f34f7124498a57e9da8

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

LOG: [ADT] Fix MappedIteratorTest. (#67337)

Caught on builds with expensive and _GLIBCXX_DEBUG checks enabled.

See related discussion in
<https://reviews.llvm.org/D134675#inline-1472177>.

Added: 
    

Modified: 
    llvm/unittests/ADT/MappedIteratorTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ADT/MappedIteratorTest.cpp b/llvm/unittests/ADT/MappedIteratorTest.cpp
index f2858bd11eceb2c..8ea3dbc0d5a0933 100644
--- a/llvm/unittests/ADT/MappedIteratorTest.cpp
+++ b/llvm/unittests/ADT/MappedIteratorTest.cpp
@@ -174,7 +174,7 @@ TYPED_TEST(MappedIteratorTestBasic, MoveAssign) {
 
     I3 = std::move(I2);
 
-    EXPECT_EQ(I2, I1) << "move assigned iterator is a 
diff erent position";
+    EXPECT_EQ(I3, I1) << "move assigned iterator is a 
diff erent position";
   }
 }
 


        


More information about the llvm-commits mailing list