diff options
author | Brad King <brad.king@kitware.com> | 2016-11-17 16:33:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-18 14:43:19 (GMT) |
commit | 44de61578130cbd6e0f23057f9cf86f884078a4e (patch) | |
tree | 2bfd7be17fbe980eaf1b83e0d2e5ddb0203afc22 /Tests | |
parent | 0e9634d2c90fd748774f9238219cb1661550f233 (diff) | |
download | CMake-44de61578130cbd6e0f23057f9cf86f884078a4e.zip CMake-44de61578130cbd6e0f23057f9cf86f884078a4e.tar.gz CMake-44de61578130cbd6e0f23057f9cf86f884078a4e.tar.bz2 |
cmake: Comment why we ignore the include-what-you-use return code
The include-what-you-use tool always returns non-zero to indicate that
it did not actually produce an object file as Clang would from the same
command line. Add a comment explaining that this is why we ignore its
return code. Also update our `pseudo_iwyu` test suite tool to always
exit with an error too.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/pseudo_iwyu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/pseudo_iwyu.c b/Tests/RunCMake/pseudo_iwyu.c index 1e25de7..c761741 100644 --- a/Tests/RunCMake/pseudo_iwyu.c +++ b/Tests/RunCMake/pseudo_iwyu.c @@ -3,5 +3,6 @@ int main(void) { fprintf(stderr, "should add these lines:\n#include <...>\n"); - return 0; + /* include-what-you-use always returns failure */ + return 1; } |