Fix MiLibraryLoadedTestCase.test_lldbmi_library_loaded test on Linux (MI)
authorIlia K <ki.stfu@gmail.com>
Thu, 30 Apr 2015 12:37:05 +0000 (12:37 +0000)
committerIlia K <ki.stfu@gmail.com>
Thu, 30 Apr 2015 12:37:05 +0000 (12:37 +0000)
llvm-svn: 236229

lldb/test/tools/lldb-mi/TestMiLibraryLoaded.py

index 9b6173f..615b748 100644 (file)
@@ -26,8 +26,10 @@ class MiLibraryLoadedTestCase(lldbmi_testcase.MiTestCaseBase):
         import os
         path = os.path.join(os.getcwd(), self.myexe)
         symbols_path = os.path.join(path + ".dSYM", "Contents", "Resources", "DWARF", self.myexe)
-        self.expect("=library-loaded,id=\"%s\",target-name=\"%s\",host-name=\"%s\",symbols-loaded=\"1\",symbols-path=\"%s\",loaded_addr=\"-\"" % (path, path, path, symbols_path),
-            exactly = True)
+        self.expect([
+                "=library-loaded,id=\"%s\",target-name=\"%s\",host-name=\"%s\",symbols-loaded=\"1\",symbols-path=\"%s\",loaded_addr=\"-\"" % (path, path, path, symbols_path),
+                "=library-loaded,id=\"%s\",target-name=\"%s\",host-name=\"%s\",symbols-loaded=\"0\",loaded_addr=\"-\"" % (path, path, path)
+            ], exactly = True)
 
 if __name__ == '__main__':
     unittest2.main()