[compiler-rt] ee2bf31 - [test][MSAN] Fix test by printing action before execution it
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 23 21:12:15 PDT 2023
Author: Vitaly Buka
Date: 2023-06-23T21:12:01-07:00
New Revision: ee2bf319bc054a5ba60d26433326b0ea7731aff7
URL: https://github.com/llvm/llvm-project/commit/ee2bf319bc054a5ba60d26433326b0ea7731aff7
DIFF: https://github.com/llvm/llvm-project/commit/ee2bf319bc054a5ba60d26433326b0ea7731aff7.diff
LOG: [test][MSAN] Fix test by printing action before execution it
We expect log messages from enother thread triggered by actions.
Added:
Modified:
compiler-rt/test/msan/release_origin.c
Removed:
################################################################################
diff --git a/compiler-rt/test/msan/release_origin.c b/compiler-rt/test/msan/release_origin.c
index a5328a0de8c2f..8856f5c030f16 100644
--- a/compiler-rt/test/msan/release_origin.c
+++ b/compiler-rt/test/msan/release_origin.c
@@ -12,14 +12,14 @@ void *p;
int main(int argc, char **argv) {
int s = 20 * 1024 * 1024;
- p = malloc(s);
fprintf(stderr, "malloc\n");
+ p = malloc(s);
sleep(1);
- memset(p, 1, s);
fprintf(stderr, "memset\n");
+ memset(p, 1, s);
sleep(1);
- free(p);
fprintf(stderr, "free\n");
+ free(p);
sleep(1);
return 0;
}
More information about the llvm-commits
mailing list