diff options
author | Rui Ueyama <ruiu@google.com> | 2013-12-25 06:47:40 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-12-25 06:47:40 +0000 |
commit | a15ba5b71b954971e796beb52c9fed67d3ce4b2c (patch) | |
tree | ce42cfdd587d7a497ab6387a276a4f01281df29f /lld/unittests/DriverTests/WinLinkDriverTest.cpp | |
parent | cf4616110cd7b0b3d8155db110f06fbbed4bba25 (diff) | |
download | bcm5719-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.cpp | 4 |
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); |