Skip to content

Commit 3b43ae9

Browse files
authored
[scudo] Remove end of line checks. (#88022)
The regex to verify that there is nothing else at the end of the line doesn't work in all cases, so remove it.
1 parent c23135c commit 3b43ae9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler-rt/lib/scudo/standalone/tests/report_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ TEST(ScudoReportDeathTest, CSpecific) {
6363
TEST(ScudoReportDeathTest, Linux) {
6464
errno = ENOMEM;
6565
EXPECT_DEATH(scudo::reportMapError(),
66-
"Scudo ERROR:.*internal map failure \\(error desc=.*\\)\\s*$");
66+
"Scudo ERROR:.*internal map failure \\(error desc=.*\\)");
6767
errno = ENOMEM;
6868
EXPECT_DEATH(scudo::reportMapError(1024U),
6969
"Scudo ERROR:.*internal map failure \\(error desc=.*\\) "
70-
"requesting 1KB\\s*$");
70+
"requesting 1KB");
7171
errno = ENOMEM;
7272
EXPECT_DEATH(scudo::reportUnmapError(0x1000U, 100U),
7373
"Scudo ERROR:.*internal unmap failure \\(error desc=.*\\) Addr "
74-
"0x1000 Size 100\\s*$");
74+
"0x1000 Size 100");
7575
errno = ENOMEM;
7676
EXPECT_DEATH(scudo::reportProtectError(0x1000U, 100U, PROT_READ),
7777
"Scudo ERROR:.*internal protect failure \\(error desc=.*\\) "
78-
"Addr 0x1000 Size 100 Prot 1\\s*$");
78+
"Addr 0x1000 Size 100 Prot 1");
7979
}
8080
#endif

0 commit comments

Comments
 (0)