Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

Fix analyzer tests when Z3 is available #655

Closed csordasmarton closed 5 years ago

csordasmarton commented 5 years ago

When Z3 is available, macro test cases are failing. The problem is that we cannot use conditional directives because FileCheck is not preprocessing the source file before doing the comparison. So before doing the verification we are preprocessing the test file.

Another thing is that the preprocessing command doesn't know that Z3 is turned on or not so we are using variable substitution to tell it.

dkrupp commented 5 years ago

Can one of the admins verify this patch?

martong commented 5 years ago

This is a comment for the buildbot: run tests.