diff options
author | Pavel Labath <pavel@labath.sk> | 2019-02-07 14:03:43 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-02-07 14:03:43 +0000 |
commit | 67f6d842fab6d3ac8c949721be8e131cf6b17578 (patch) | |
tree | d5b9e3cd4e9fc4b1e68327945d801f213c061e90 /lldb/packages/Python/lldbsuite/test/expression_command/context-object-objc/TestContextObjectObjc.py | |
parent | 76016ba1ca86b2b25eca168aa6216ebd8e1fc3b9 (diff) | |
download | bcm5719-llvm-67f6d842fab6d3ac8c949721be8e131cf6b17578.tar.gz bcm5719-llvm-67f6d842fab6d3ac8c949721be8e131cf6b17578.zip |
use_lldb_suite.py: Fix potential infinite loop
The loop searching for use_lldb_suite_root had a bug where if the marker
file happened to be missing, it would enter an infinite loop. While this
shouldn't happen in normal circumstances, it can happen accidentally,
and debugging it is not very pleasant.
The loop had an exit condition, but it was incorrent (os.path.dirname
returning None). This will never happen as dirname will just return the
same folder over and over again once it reaches the root folder. This
fixes the exit condition to account for that.
llvm-svn: 353406
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/context-object-objc/TestContextObjectObjc.py')
0 files changed, 0 insertions, 0 deletions