Fix this test case so it runs correctly.

<rdar://problem/19286788>

llvm-svn: 230101
This commit is contained in:
Greg Clayton 2015-02-21 00:23:36 +00:00
parent 5f989abcd4
commit 7ab0d6f443
1 changed files with 5 additions and 3 deletions

View File

@ -28,16 +28,18 @@ class FoundationDisassembleTestCase(TestBase):
self.assertTrue(target, VALID_TARGET)
# Now launch the process, and do not stop at entry point.
process = target.LaunchSimple (None, environment, self.get_process_working_directory())
process = target.LaunchSimple (None, None, self.get_process_working_directory())
self.assertTrue(process, PROCESS_IS_VALID)
foundation_framework = None
for module in target.modules:
print module
if module.file.basename == "Foundation":
foundation_framework = module.file.fullpath
break
self.assertTrue(match, "Foundation.framework path located")
self.runCmd("image dump symtab %s" % foundation_framework)
self.assertTrue(foundation_framework != None, "Foundation.framework path located")
self.runCmd("image dump symtab '%s'" % foundation_framework)
raw_output = self.res.GetOutput()
# Now, grab every 'Code' symbol and feed it into the command:
# 'disassemble -n func'.