[Lldb-commits] [lldb] r181488 - Fixed the process attach by name test to get the target _after_ doing process attach. Otherwise the target isn't valid. This fixes 2 test suite failures on darwin.
Greg Clayton
gclayton at apple.com
Wed May 8 16:45:07 PDT 2013
Author: gclayton
Date: Wed May 8 18:45:06 2013
New Revision: 181488
URL: http://llvm.org/viewvc/llvm-project?rev=181488&view=rev
Log:
Fixed the process attach by name test to get the target _after_ doing process attach. Otherwise the target isn't valid. This fixes 2 test suite failures on darwin.
Modified:
lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py
Modified: lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py?rev=181488&r1=181487&r2=181488&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py (original)
+++ lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py Wed May 8 18:45:06 2013
@@ -69,10 +69,10 @@ class ProcessAttachTestCase(TestBase):
popen = self.spawnSubprocess(exe)
self.addTearDownHook(self.cleanupSubprocesses)
- target = self.dbg.GetSelectedTarget()
-
self.runCmd("process attach -n a.out")
+ target = self.dbg.GetSelectedTarget()
+
process = target.GetProcess()
self.assertTrue(process, PROCESS_IS_VALID)
More information about the lldb-commits
mailing list