summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2019-12-06 08:36:23 -0800
committerJordan Rupprecht <rupprecht@google.com>2019-12-06 08:36:23 -0800
commit03a242bd41ee49e17f8da96af9787d13e7ea2b93 (patch)
tree427ce7700b3656eb6079f2084573938bcce6e806 /lldb/packages/Python/lldbsuite/test/python_api
parent984f1bb3e794b83da5dde9440f9807c645e8e6db (diff)
downloadbcm5719-llvm-03a242bd41ee49e17f8da96af9787d13e7ea2b93.tar.gz
bcm5719-llvm-03a242bd41ee49e17f8da96af9787d13e7ea2b93.zip
[lldb][test] Handle .categories lookup for inline tests.
Summary: When creating a test with `lldbinline.MakeInlineTest()`, the reported `inspect.getfile(test.__class__)` is `lldbtest.pyc`, meaning any `.categories` file will be ineffective for those tests. Check for the test_filename first, which inline tests will set. Additionally, raise an error with the starting dir if `.categories` is not found. This makes the problem more obvious when it occurs: when the test is separated from the test framework tree. Reviewers: labath, JDevlieghere Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D71099
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud