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:
parent
71aebd8c16
commit
6fb4abf29d
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user