Skip to content

Commit 6b82988

Browse files
committed
[Remarks] Fix error message check in unit test
Always compare using lowercase to support multiple platforms.
1 parent 7c86c70 commit 6b82988

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/unittests/Remarks/RemarksLinkingTest.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ TEST(Remarks, LinkingError) {
211211
40),
212212
remarks::Format::YAMLStrTab);
213213
EXPECT_TRUE(static_cast<bool>(E));
214-
EXPECT_EQ(toString(std::move(E)),
215-
"'/baddir/badfile.opt.yaml': No such file or directory");
214+
std::string ErrorMessage = toString(std::move(E));
215+
EXPECT_EQ(StringRef(ErrorMessage).lower(),
216+
StringRef("'/baddir/badfile.opt.yaml': No such file or directory")
217+
.lower());
216218
}
217219
}

0 commit comments

Comments
 (0)