[compiler-rt] 8362ddb - [test][sanitizer] Reduce output noise in test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 10 16:51:59 PDT 2023
Author: Vitaly Buka
Date: 2023-09-10T16:51:39-07:00
New Revision: 8362ddb6579657a1cb81735837d40e2c68f8f56e
URL: https://github.com/llvm/llvm-project/commit/8362ddb6579657a1cb81735837d40e2c68f8f56e
DIFF: https://github.com/llvm/llvm-project/commit/8362ddb6579657a1cb81735837d40e2c68f8f56e.diff
LOG: [test][sanitizer] Reduce output noise in test
Added:
Modified:
compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp b/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
index 5d757eeacd5fca9..7ae2df5d5647b50 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
@@ -25,11 +25,13 @@ int main(void) {
// does not unpoison it.
const void *start = NULL;
for (int j = 0; j < sizes[i]; j++) {
- printf("j: %d\n", j);
start = __sanitizer_get_allocated_begin(array + j);
- printf("Start: %p (expected: %p)\n", start, array);
- fflush(stdout);
+ if (array != start) {
+ printf("j: %d\n", j);
+ printf("Start: %p (expected: %p)\n", start, array);
+ fflush(stdout);
+ }
assert(array == start);
}
More information about the llvm-commits
mailing list