unittest: Convert EXPECT_EQ iterator checks to use EXPECT_TRUE instead
authorVedant Kumar <vsk@apple.com>
Thu, 27 Feb 2020 22:19:42 +0000 (14:19 -0800)
committerVedant Kumar <vsk@apple.com>
Thu, 27 Feb 2020 22:19:45 +0000 (14:19 -0800)
commit36789388d01fc4a24088f214145414a043582671
tree1e155225341dcf17a6842d133dfff19ab1e59f63
parent20f508efc0122173980fc9607ccd694938ddf79f
unittest: Convert EXPECT_EQ iterator checks to use EXPECT_TRUE instead

Hopefully fixes compile errors on some bots, like:

http://lab.llvm.org:8011/builders/clang-cmake-x86_64-avx2-linux/builds/13383/steps/ninja%20check%201/logs/stdio

/home/ssglocal/clang-cmake-x86_64-avx2-linux/clang-cmake-x86_64-avx2-linux/llvm/llvm/unittests/ADT/CoalescingBitVectorTest.cpp:452:3:   required from here
/home/ssglocal/clang-cmake-x86_64-avx2-linux/clang-cmake-x86_64-avx2-linux/llvm/llvm/utils/unittest/googletest/include/gtest/gtest-printers.h:377:56: error: ‘const class llvm::CoalescingBitVector<long unsigned int>::const_iterator’ has no member named ‘begin’
   for (typename C::const_iterator it = container.begin();
                                                        ^
/home/ssglocal/clang-cmake-x86_64-avx2-linux/clang-cmake-x86_64-avx2-linux/llvm/llvm/utils/unittest/googletest/include/gtest/gtest-printers.h:378:11: error: ‘const class llvm::CoalescingBitVector<long unsigned int>::const_iterator’ has no member named ‘end’
        it != container.end(); ++it, ++count) {
           ^
llvm/unittests/ADT/CoalescingBitVectorTest.cpp