llvm-project/lldb
Jordan Rupprecht cf3f100fcb [lldb][test] Prevent infinite loop while looking for use_lldb_suite_root.py.
Several scripts (two copies of use_lldb_suite.py, and an __init__.py) look for use_lldb_suite_root.py by checking parent directories. If for some reason it doesn't exist, it keeps checking parent directories until it finds it.

However, this only breaks when the parent directory is None, but at least on Linux, dirname('/') == '/', so this will never be None.

This changes the lookup to stop if the dirname(lldb_root) is unchanged. This was previously fixed in 67f6d842fa, but only in one copy of this script.

Additionally, this makes the failure mode more visible -- if the root is not found, it complains loudly instead of silently failing, and having later modules that need lldb_root fail.

Differential Revision: https://reviews.llvm.org/D83840
2020-07-15 09:16:30 -07:00
..
bindings [lldb/api] Improve error reporting in SBBreakpoint::AddName (NFCI) 2020-07-01 12:45:05 +02:00
cmake [lldb/Lua] Require Lua 5.3 2020-06-23 09:24:01 -07:00
docs Updated the list of supported platforms in LLDB to include Apple silicon. 2020-07-08 15:33:00 -07:00
examples As part of using inclusive language within the llvm project, 2020-06-19 14:51:04 -07:00
include/lldb [lldb/Module] Allow for the creation of memory-only modules 2020-07-14 08:45:44 -07:00
packages/Python [lldb][test] Prevent infinite loop while looking for use_lldb_suite_root.py. 2020-07-15 09:16:30 -07:00
resources
scripts [lldb][test] Prevent infinite loop while looking for use_lldb_suite_root.py. 2020-07-15 09:16:30 -07:00
source [lldb][formatters] Add support for printing NSConstantDate and fix distantPast value 2020-07-15 10:28:10 +02:00
test [lldb][test] Prevent infinite loop while looking for use_lldb_suite_root.py. 2020-07-15 09:16:30 -07:00
third_party/Python/module [lldb] NFC: Fix trivial typo in comments, documents, and messages 2020-04-07 01:06:16 +09:00
tools [lldb-vscode] Fix TestVSCode_setBreakpoints 2020-07-13 18:27:53 -07:00
unittests [lldb] Delete useless assertion 2020-07-15 15:42:53 +02:00
utils [lldb/Test] Fix missing yaml2obj in Xcode standalone build. 2020-07-10 21:34:56 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [lldb/CMake] Only CMAKE_CFG_INTDIR if it's not '.' 2020-03-27 17:49:00 -07:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py