summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-05-17 11:47:44 +0000
committerPavel Labath <labath@google.com>2017-05-17 11:47:44 +0000
commit1b8fe5ec8d6fa2f7b085d7f76eab571e851ea468 (patch)
treec0a8bfa12e40e804f8f68c2c54a45413d9ab10d3 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parent68d21c864e7df765e42bf6f9c59cd4750d9ddf21 (diff)
downloadbcm5719-llvm-1b8fe5ec8d6fa2f7b085d7f76eab571e851ea468.tar.gz
bcm5719-llvm-1b8fe5ec8d6fa2f7b085d7f76eab571e851ea468.zip
Make TestConflictingSymbol run on non-darwin targets
For remote targets we need to call registerSharedLibrariesWithTarget to make sure they are installed alongside main executable. This also required a small fixup in the the mentioned function as in this case "One" was both a directory name and a library name template. I fixed it to make sure it checks that the string refers to a file before it assumed it was a full library path. llvm-svn: 303248
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index bc0fb1b686a..f1d65cf2076 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1934,7 +1934,7 @@ class TestBase(Base):
# "libFoo.dylib" or "libFoo.so", or "Foo.so" for "Foo.so" or "libFoo.so", or just a
# basename like "libFoo.so". So figure out which one it is and resolve the local copy
# of the shared library accordingly
- if os.path.exists(name):
+ if os.path.isfile(name):
local_shlib_path = name # name is the full path to the local shared library
else:
# Check relative names
OpenPOWER on IntegriCloud