summaryrefslogtreecommitdiffstats
path: root/lld/unittests/DriverTests/WinLinkDriverTest.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-12-25 06:47:40 +0000
committerRui Ueyama <ruiu@google.com>2013-12-25 06:47:40 +0000
commita15ba5b71b954971e796beb52c9fed67d3ce4b2c (patch)
treece42cfdd587d7a497ab6387a276a4f01281df29f /lld/unittests/DriverTests/WinLinkDriverTest.cpp
parentcf4616110cd7b0b3d8155db110f06fbbed4bba25 (diff)
downloadbcm5719-llvm-a15ba5b71b954971e796beb52c9fed67d3ce4b2c.tar.gz
bcm5719-llvm-a15ba5b71b954971e796beb52c9fed67d3ce4b2c.zip
Use EXPECT_EQ in unit tests.
llvm-svn: 197999
Diffstat (limited to 'lld/unittests/DriverTests/WinLinkDriverTest.cpp')
-rw-r--r--lld/unittests/DriverTests/WinLinkDriverTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp
index decfbb6dd2d..7dc2e62511f 100644
--- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp
+++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp
@@ -160,7 +160,7 @@ TEST_F(WinLinkParserTest, Export) {
EXPECT_TRUE(parse("link.exe", "/export:foo", "a.out", nullptr));
const std::vector<PECOFFLinkingContext::ExportDesc> &exports =
_context.getDllExports();
- EXPECT_TRUE(exports.size() == 1);
+ EXPECT_EQ(1U, exports.size());
EXPECT_EQ("_foo", exports[0].name);
EXPECT_EQ(1, exports[0].ordinal);
EXPECT_FALSE(exports[0].noname);
@@ -172,7 +172,7 @@ TEST_F(WinLinkParserTest, ExportWithOptions) {
"/export:bar,@10,data", "a.out", nullptr));
const std::vector<PECOFFLinkingContext::ExportDesc> &exports =
_context.getDllExports();
- EXPECT_TRUE(exports.size() == 2);
+ EXPECT_EQ(2U, exports.size());
EXPECT_EQ("_foo", exports[0].name);
EXPECT_EQ(8, exports[0].ordinal);
EXPECT_TRUE(exports[0].noname);
OpenPOWER on IntegriCloud