[compiler-rt] [scudo] Remove end of line checks. (PR #88022)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 10:49:35 PDT 2024
https://github.com/cferris1000 created https://github.com/llvm/llvm-project/pull/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.
>From a37bfe44d7cb018ed8527da071531f1dbef71332 Mon Sep 17 00:00:00 2001
From: Christopher Ferris <cferris at google.com>
Date: Mon, 8 Apr 2024 10:43:48 -0700
Subject: [PATCH] [scudo] Remove end of line checks.
The regex to verify that there is nothing else at the end of the line
doesn't work in all cases, so remove it.
---
compiler-rt/lib/scudo/standalone/tests/report_test.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/compiler-rt/lib/scudo/standalone/tests/report_test.cpp b/compiler-rt/lib/scudo/standalone/tests/report_test.cpp
index 2c790247a2f6e2..6c46243053d9e5 100644
--- a/compiler-rt/lib/scudo/standalone/tests/report_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/report_test.cpp
@@ -63,18 +63,18 @@ TEST(ScudoReportDeathTest, CSpecific) {
TEST(ScudoReportDeathTest, Linux) {
errno = ENOMEM;
EXPECT_DEATH(scudo::reportMapError(),
- "Scudo ERROR:.*internal map failure \\(error desc=.*\\)\\s*$");
+ "Scudo ERROR:.*internal map failure \\(error desc=.*\\)");
errno = ENOMEM;
EXPECT_DEATH(scudo::reportMapError(1024U),
"Scudo ERROR:.*internal map failure \\(error desc=.*\\) "
- "requesting 1KB\\s*$");
+ "requesting 1KB");
errno = ENOMEM;
EXPECT_DEATH(scudo::reportUnmapError(0x1000U, 100U),
"Scudo ERROR:.*internal unmap failure \\(error desc=.*\\) Addr "
- "0x1000 Size 100\\s*$");
+ "0x1000 Size 100");
errno = ENOMEM;
EXPECT_DEATH(scudo::reportProtectError(0x1000U, 100U, PROT_READ),
"Scudo ERROR:.*internal protect failure \\(error desc=.*\\) "
- "Addr 0x1000 Size 100 Prot 1\\s*$");
+ "Addr 0x1000 Size 100 Prot 1");
}
#endif
More information about the llvm-commits
mailing list