[Lldb-commits] [lldb] r131038 - /lldb/trunk/test/load_unload/TestLoadUnload.py
Johnny Chen
johnny.chen at apple.com
Fri May 6 16:59:10 PDT 2011
Author: johnny
Date: Fri May 6 18:59:10 2011
New Revision: 131038
URL: http://llvm.org/viewvc/llvm-project?rev=131038&view=rev
Log:
Modify the test case related to "target modules search-paths" as it suffers from code rotting.
Modified:
lldb/trunk/test/load_unload/TestLoadUnload.py
Modified: lldb/trunk/test/load_unload/TestLoadUnload.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/load_unload/TestLoadUnload.py?rev=131038&r1=131037&r2=131038&view=diff
==============================================================================
--- lldb/trunk/test/load_unload/TestLoadUnload.py (original)
+++ lldb/trunk/test/load_unload/TestLoadUnload.py Fri May 6 18:59:10 2011
@@ -21,8 +21,8 @@
self.line_d_function = line_number('d.c',
'// Find this line number within d_dunction().')
- def test_image_search_paths(self):
- """Test image list after moving libd.dylib, and verifies that it works with 'target image-search-paths add'."""
+ def test_modules_search_paths(self):
+ """Test target modules list after moving libd.dylib, and verifies that it works with 'target modules search-paths add'."""
# Invoke the default build rule.
self.buildDefault()
@@ -50,14 +50,18 @@
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
- self.expect("image list",
+ self.expect("target modules list",
substrs = [old_dylib])
- self.expect("image list -t 3",
+ self.expect("target modules list -t 3",
patterns = ["%s-[^-]*-[^-]*" % self.getArchitecture()])
- self.runCmd("target image-search-paths add %s %s" % (os.getcwd(), new_dir))
+ self.runCmd("target modules search-paths add %s %s" % (os.getcwd(), new_dir))
+
+ self.expect("target modules search-paths list",
+ substrs = [os.getcwd(), new_dir])
+
# Add teardown hook to clear image-search-paths after the test.
- self.addTearDownHook(lambda: self.runCmd("target image-search-paths clear"))
- self.expect("image list", "LLDB successfully locates the relocated dynamic library",
+ self.addTearDownHook(lambda: self.runCmd("target modules search-paths clear"))
+ self.expect("target modules list", "LLDB successfully locates the relocated dynamic library",
substrs = [new_dylib])
More information about the lldb-commits
mailing list