1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[Remarks] Fix error message check in unit test

Always compare using lowercase to support multiple platforms.
This commit is contained in:
Francis Visoiu Mistrih 2019-10-31 15:50:00 -07:00
parent 71aebd8c16
commit 6fb4abf29d

View File

@ -211,7 +211,9 @@ TEST(Remarks, LinkingError) {
40), 40),
remarks::Format::YAMLStrTab); remarks::Format::YAMLStrTab);
EXPECT_TRUE(static_cast<bool>(E)); EXPECT_TRUE(static_cast<bool>(E));
EXPECT_EQ(toString(std::move(E)), std::string ErrorMessage = toString(std::move(E));
"'/baddir/badfile.opt.yaml': No such file or directory"); EXPECT_EQ(StringRef(ErrorMessage).lower(),
StringRef("'/baddir/badfile.opt.yaml': No such file or directory")
.lower());
} }
} }