[Lldb-commits] [lldb] r130777 - /lldb/trunk/test/load_unload/TestLoadUnload.py

Johnny Chen johnny.chen at apple.com
Tue May 3 11:53:19 PDT 2011


Author: johnny
Date: Tue May  3 13:53:19 2011
New Revision: 130777

URL: http://llvm.org/viewvc/llvm-project?rev=130777&view=rev
Log:
Modify test_image_search_paths(self) to check for the pattern "%s-[^-]*-[^-]*" % self.getArchitecture()
from the output of running 'image list -t 3' command which lists the triples of the image list.

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=130777&r1=130776&r2=130777&view=diff
==============================================================================
--- lldb/trunk/test/load_unload/TestLoadUnload.py (original)
+++ lldb/trunk/test/load_unload/TestLoadUnload.py Tue May  3 13:53:19 2011
@@ -49,8 +49,11 @@
 
         exe = os.path.join(os.getcwd(), "a.out")
         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+        print "Architecture to test for:", self.getArchitecture()
         self.expect("image list",
             substrs = [old_dylib])
+        self.expect("image list -t 3",
+            patterns = ["%s-[^-]*-[^-]*" % self.getArchitecture()])
         self.runCmd("target image-search-paths add %s %s" % (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"))





More information about the lldb-commits mailing list