[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 7c86c70f26
commit 6b82988f7e
1 changed files with 4 additions and 2 deletions
llvm/unittests/Remarks

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());
}
}