Skip to content

[lldb][dotest] Add an arg to add DLL search paths. #104514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lldb/packages/Python/lldbsuite/test/dotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ def parseOptionsAndInitTestdirs():
except:
raise

if args.dll_directory:
for dir in args.dll_directory:
os.add_dll_directory(dir)

if args.unset_env_varnames:
for env_var in args.unset_env_varnames:
if env_var in os.environ:
Expand Down
6 changes: 6 additions & 0 deletions lldb/packages/Python/lldbsuite/test/dotest_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ def create_parser():
action="append",
help="Specify an environment variable to set to the given value for the inferior.",
)
# See https://docs.python.org/3.8/whatsnew/3.8.html#bpo-36085-whatsnew.
group.add_argument(
"--dll-directory",
action="append",
help="Specify a directory to include when searching for .dll files. This can be passed multiple times.",
)
X(
"-v",
"Do verbose mode of unittest framework (print out each test case invocation)",
Expand Down
Loading