From: Francis Visoiu Mistrih Date: Thu, 31 Oct 2019 22:50:00 +0000 (-0700) Subject: [Remarks] Fix error message check in unit test X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b82988f7e336ffd383bd591ce81ecf1454649aa;p=platform%2Fupstream%2Fllvm.git [Remarks] Fix error message check in unit test Always compare using lowercase to support multiple platforms. --- diff --git a/llvm/unittests/Remarks/RemarksLinkingTest.cpp b/llvm/unittests/Remarks/RemarksLinkingTest.cpp index 8d38c6b..95c800d 100644 --- a/llvm/unittests/Remarks/RemarksLinkingTest.cpp +++ b/llvm/unittests/Remarks/RemarksLinkingTest.cpp @@ -211,7 +211,9 @@ TEST(Remarks, LinkingError) { 40), remarks::Format::YAMLStrTab); EXPECT_TRUE(static_cast(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()); } }