[llvm] [ADT] Fix MappedIteratorTest. (PR #67337)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 07:58:41 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-adt

<details>
<summary>Changes</summary>

Caught on builds with expensive and _GLIBCXX_DEBUG checks enabled.

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

---
Full diff: https://github.com/llvm/llvm-project/pull/67337.diff


1 Files Affected:

- (modified) llvm/unittests/ADT/MappedIteratorTest.cpp (+1-1) 


``````````diff
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 different position";
+    EXPECT_EQ(I3, I1) << "move assigned iterator is a different position";
   }
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/67337


More information about the llvm-commits mailing list