[llvm] r325121 - Use EXPECT_FALSE instead of EXPECT_EQ(false, ...
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 05:11:56 PST 2018
Author: chill
Date: Wed Feb 14 05:11:56 2018
New Revision: 325121
URL: http://llvm.org/viewvc/llvm-project?rev=325121&view=rev
Log:
Use EXPECT_FALSE instead of EXPECT_EQ(false, ...
Commit https://reviews.llvm.org/rL324489 added
EXPECT_EQ(false, N->isUnsigned());
which older GCC versions dislike for some reason. Anyway, it looks like the
proper GTest way is to use EXPECT_FALSE, etc.
Differential Revision: https://reviews.llvm.org/D43233
Modified:
llvm/trunk/unittests/IR/MetadataTest.cpp
Modified: llvm/trunk/unittests/IR/MetadataTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/MetadataTest.cpp?rev=325121&r1=325120&r2=325121&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/MetadataTest.cpp (original)
+++ llvm/trunk/unittests/IR/MetadataTest.cpp Wed Feb 14 05:11:56 2018
@@ -981,7 +981,7 @@ TEST_F(DIEnumeratorTest, get) {
auto *N = DIEnumerator::get(Context, 7, false, "name");
EXPECT_EQ(dwarf::DW_TAG_enumerator, N->getTag());
EXPECT_EQ(7, N->getValue());
- EXPECT_EQ(false, N->isUnsigned());
+ EXPECT_FALSE(N->isUnsigned());
EXPECT_EQ("name", N->getName());
EXPECT_EQ(N, DIEnumerator::get(Context, 7, false, "name"));
More information about the llvm-commits
mailing list