[Lldb-commits] [lldb] r129828 - in /lldb/trunk/test: python_api/lldbutil/ python_api/lldbutil/Makefile python_api/lldbutil/TestPrintStackTraces.py threads/
Johnny Chen
johnny.chen at apple.com
Tue Apr 19 15:44:20 PDT 2011
Author: johnny
Date: Tue Apr 19 17:44:20 2011
New Revision: 129828
URL: http://llvm.org/viewvc/llvm-project?rev=129828&view=rev
Log:
Rename test/threads to python_api/lldbutil; it uses lldbutil functions to print stack traces.
Added:
lldb/trunk/test/python_api/lldbutil/
- copied from r129765, lldb/trunk/test/threads/
Removed:
lldb/trunk/test/threads/
Modified:
lldb/trunk/test/python_api/lldbutil/Makefile
lldb/trunk/test/python_api/lldbutil/TestPrintStackTraces.py
Modified: lldb/trunk/test/python_api/lldbutil/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/lldbutil/Makefile?rev=129828&r1=129765&r2=129828&view=diff
==============================================================================
--- lldb/trunk/test/python_api/lldbutil/Makefile (original)
+++ lldb/trunk/test/python_api/lldbutil/Makefile Tue Apr 19 17:44:20 2011
@@ -1,4 +1,4 @@
-LEVEL = ../make
+LEVEL = ../../make
CXX_SOURCES := main.cpp
MAKE_DSYM :=NO
Modified: lldb/trunk/test/python_api/lldbutil/TestPrintStackTraces.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/lldbutil/TestPrintStackTraces.py?rev=129828&r1=129765&r2=129828&view=diff
==============================================================================
--- lldb/trunk/test/python_api/lldbutil/TestPrintStackTraces.py (original)
+++ lldb/trunk/test/python_api/lldbutil/TestPrintStackTraces.py Tue Apr 19 17:44:20 2011
@@ -1,5 +1,5 @@
"""
-Test SBprocess and SBThread APIs with printing of the stack traces.
+Test SBprocess and SBThread APIs with printing of the stack traces using lldbutil.
"""
import os, time
@@ -10,7 +10,7 @@
class ThreadsStackTracesTestCase(TestBase):
- mydir = "threads"
+ mydir = "python_api/lldbutil"
def setUp(self):
# Call super's setUp().
@@ -46,7 +46,8 @@
"instead the actual state is: '%s'" %
lldbutil.StateTypeString(self.process.GetState()))
- lldbutil.PrintStackTraces(self.process)
+ if self.TraceOn():
+ lldbutil.PrintStackTraces(self.process)
if __name__ == '__main__':
More information about the lldb-commits
mailing list