diff options
author | Dimitry Andric <dimitry@andric.com> | 2017-05-25 23:56:44 +0000 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2017-05-25 23:56:44 +0000 |
commit | 76b6038cc646ab71c9c0ac9ad1408df91d7542a9 (patch) | |
tree | e2f92524cd5f52f7232103a027391ccaf25d1110 /clang/lib/Lex/ModuleMap.cpp | |
parent | f2110283c634f7c040edcc0c74e972a6640bacd4 (diff) | |
download | llvm-76b6038cc646ab71c9c0ac9ad1408df91d7542a9.zip llvm-76b6038cc646ab71c9c0ac9ad1408df91d7542a9.tar.gz llvm-76b6038cc646ab71c9c0ac9ad1408df91d7542a9.tar.bz2 |
Return a lit.Test.Result object from TestRunner's executeShTest()
Summary:
For various clang analyzer tests, which were unsupported, I got lit
exceptions, similar to the following:
Exception during script execution:
Traceback (most recent call last):
File "utils/lit/lit/run.py", line 190, in execute_test
result = test.config.test_format.execute(test, lit_config)
File "tools/clang/test/Analysis/analyzer_test.py", line 11, in execute
if result.code == lit.Test.FAIL:
AttributeError: 'tuple' object has no attribute 'code'
This is because executeShTest() in utils/lit/lit/TestRunner.py is
supposed to return a lit.Test.Result object, but in case of unsupported
tests, it returns a plain tuple.
Fix this by returning a properly initialized lit.Test.Result object
instead.
Reviewers: rnk, rafael, modocache
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D33579
llvm-svn: 303943
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions