[PATCH] D55075: [TSan] Remove ignore_interceptors_accesses flag

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 21 15:43:16 PST 2018


yln marked 2 inline comments as done.
yln added inline comments.


================
Comment at: compiler-rt/test/tsan/ignored-interceptors-mmap.cc:53
+
+  assert(global_p[0] == 7);
   printf("OK\n");
----------------
dvyukov wrote:
> Are asserts even enabled in all builds? I would just use if.
> 
This is not a test assert/check but rather an assert to ensure the sanity of the test itself.
The actual test checks are below (the FileCheck directives). Note both expect "OK", i.e., the program completes and not aborted via the assert. So I am not too sure would you would put into the if?
Let me know if you have an idea how to better express my intent here.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55075/new/

https://reviews.llvm.org/D55075





More information about the llvm-commits mailing list