summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-04-24 23:33:16 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-04-24 23:33:16 +0000
commitc4f4d056ab2ddeea53fd08304c1c4d7d6c251d11 (patch)
tree3403a93ac054ff752266e22decbb0b66fc34379a
parentdfc066d274ab032b47b1c880ddbae820b97efa4b (diff)
downloadbcm5719-llvm-c4f4d056ab2ddeea53fd08304c1c4d7d6c251d11.tar.gz
bcm5719-llvm-c4f4d056ab2ddeea53fd08304c1c4d7d6c251d11.zip
Make the test case more robust in terms of remote testsuite execution.
rdar://problem/11312971 llvm-svn: 155505
-rw-r--r--lldb/test/functionalities/load_unload/TestLoadUnload.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/test/functionalities/load_unload/TestLoadUnload.py b/lldb/test/functionalities/load_unload/TestLoadUnload.py
index 2f58f0338e0..335bcae6e86 100644
--- a/lldb/test/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/test/functionalities/load_unload/TestLoadUnload.py
@@ -90,7 +90,8 @@ class LoadUnloadTestCase(TestBase):
dylibPath = 'DYLD_LIBRARY_PATH'
# The directory to relocate the dynamic library and its debugging info.
- new_dir = os.path.join(os.getcwd(), "hidden")
+ special_dir = "hidden"
+ new_dir = os.path.join(os.getcwd(), special_dir)
old_dylib = os.path.join(os.getcwd(), dylibName)
new_dylib = os.path.join(new_dir, dylibName)
@@ -118,7 +119,7 @@ class LoadUnloadTestCase(TestBase):
# For now we don't track DYLD_LIBRARY_PATH, so the old library will be in
# the modules list.
self.expect("target modules list",
- substrs = [old_dylib],
+ substrs = [os.path.basename(old_dylib)],
matching=True)
self.runCmd("run")
@@ -128,10 +129,7 @@ class LoadUnloadTestCase(TestBase):
# After run, make sure the hidden library is present, and the one we didn't
# load is not.
self.expect("target modules list",
- substrs = [new_dylib])
- self.expect("target modules list",
- substrs = [old_dylib],
- matching=False)
+ substrs = [special_dir, os.path.basename(new_dylib)])
def test_lldb_process_load_and_unload_commands(self):
"""Test that lldb process load/unload command work correctly."""
OpenPOWER on IntegriCloud