[PATCH] D63616: Implement `-fsanitize-coverage-whitelist` and `-fsanitize-coverage-blacklist` for clang

Matt Morehouse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 15:48:46 PDT 2020


morehouse requested changes to this revision.
morehouse added a comment.
This revision now requires changes to proceed.

In D63616#1961449 <https://reviews.llvm.org/D63616#1961449>, @tuktuk wrote:

> Am I missing an additional step for test integration, after adding the test file?


Just tried locally and I think you need to rename to file from *.cc to *.cpp.  Then it will run during `ninja check-sanitizer`.

I did that and the test fails for me.

  --
  Exit Code: 1 
  
  Command Output (stderr): 
  --
  Expected 14 lines, got 28.
  
  --

Please take a look and fix it.



================
Comment at: compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_whitelist_blacklist.cc:8
+
+// RUN: echo -e "src:*\nfun:*"     > wl_all.txt
+// RUN: echo -e ""                 > wl_none.txt
----------------
Please use `%t` or `%T` in temp file names so that they get cleaned up properly.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D63616





More information about the cfe-commits mailing list