[compiler-rt] [scudo] Remove end of line checks. (PR #88022)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 10:50:10 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Christopher Ferris (cferris1000)
<details>
<summary>Changes</summary>
The regex to verify that there is nothing else at the end of the line doesn't work in all cases, so remove it.
---
Full diff: https://github.com/llvm/llvm-project/pull/88022.diff
1 Files Affected:
- (modified) compiler-rt/lib/scudo/standalone/tests/report_test.cpp (+4-4)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/88022
More information about the llvm-commits
mailing list