[Lldb-commits] [lldb] r115822 - /lldb/trunk/test/array_types/TestArrayTypes.py
Johnny Chen
johnny.chen at apple.com
Wed Oct 6 13:03:28 PDT 2010
Author: johnny
Date: Wed Oct 6 15:03:28 2010
New Revision: 115822
URL: http://llvm.org/viewvc/llvm-project?rev=115822&view=rev
Log:
Use the SBTarget process launch API for api testings.
Modified:
lldb/trunk/test/array_types/TestArrayTypes.py
Modified: lldb/trunk/test/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/array_types/TestArrayTypes.py?rev=115822&r1=115821&r2=115822&view=diff
==============================================================================
--- lldb/trunk/test/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/array_types/TestArrayTypes.py Wed Oct 6 15:03:28 2010
@@ -42,6 +42,13 @@
self.runCmd("run", RUN_SUCCEEDED)
+ # The test suite sometimes shows that the process has exited without stopping.
+ #
+ # CC=clang ./dotest.py -v -t array_types
+ # ...
+ # Process 76604 exited with status = 0 (0x00000000)
+ self.runCmd("process status")
+
# The stop reason of the thread should be breakpoint.
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
substrs = ['state is Stopped',
@@ -93,9 +100,8 @@
self.expect(bp, msg="Breakpoint is not resolved as yet", exe=False, matching=False,
substrs = ["resolved = 1"])
- self.runCmd("run", RUN_SUCCEEDED, setCookie=False)
- # This does not work, and results in the process stopped at dyld_start?
- #process = target.LaunchProcess([''], [''], os.ctermid(), False)
+ # Now launch the process, and do not stop at entry point.
+ self.process = target.LaunchProcess([''], [''], os.ctermid(), 0, False)
self.process = target.GetProcess()
self.assertTrue(self.process.IsValid(), PROCESS_IS_VALID)
More information about the lldb-commits
mailing list