1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02: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),
remarks::Format::YAMLStrTab);
EXPECT_TRUE(static_cast<bool>(E));
EXPECT_EQ(toString(std::move(E)),
"'/baddir/badfile.opt.yaml': No such file or directory");
std::string ErrorMessage = toString(std::move(E));
EXPECT_EQ(StringRef(ErrorMessage).lower(),
StringRef("'/baddir/badfile.opt.yaml': No such file or directory")
.lower());
}
}