Skip to content

Commit b5738e9

Browse files
Fix RemarksLinkingTest
1 parent a428e23 commit b5738e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/Remarks/RemarksLinkingTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ TEST(Remarks, LinkingError) {
243243
// Check that the prepend path is propagated and fails with the full path.
244244
// Also ensures that the remark format is correctly auto-detected.
245245
RL.setExternalFilePrependPath("/baddir/");
246-
Error E = RL.link(
247-
StringRef("REMARKS\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0badfile.opt.yaml"));
246+
Error E = RL.link(StringRef(
247+
"REMARKS\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0badfile.opt.yaml", 40));
248248
EXPECT_TRUE(static_cast<bool>(E));
249249
std::string ErrorMessage = toString(std::move(E));
250250
EXPECT_EQ(StringRef(ErrorMessage).lower(),

0 commit comments

Comments
 (0)