Skip to content

Commit

Permalink
[test][sanitizer] Reduce output noise in test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Sep 10, 2023
1 parent 5361a0a commit 8362ddb
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8362ddb

Please sign in to comment.