[Lldb-commits] [lldb] r112223 - in /lldb/trunk/test: array_types/TestArrayTypes.py lldbtest.py
Johnny Chen
johnny.chen at apple.com
Thu Aug 26 14:49:29 PDT 2010
Author: johnny
Date: Thu Aug 26 16:49:29 2010
New Revision: 112223
URL: http://llvm.org/viewvc/llvm-project?rev=112223&view=rev
Log:
Added a utility function EnvArray() to lldbtest.py.
Modified:
lldb/trunk/test/array_types/TestArrayTypes.py
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/array_types/TestArrayTypes.py?rev=112223&r1=112222&r2=112223&view=diff
==============================================================================
--- lldb/trunk/test/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/array_types/TestArrayTypes.py Thu Aug 26 16:49:29 2010
@@ -67,6 +67,7 @@
self.assertTrue(breakpoint.IsValid(), VALID_BREAKPOINT)
self.runCmd("run", RUN_STOPPED)
+ #process = target.LaunchProcess([''], [''], os.ctermid(), False)
# The stop reason of the thread should be breakpoint.
thread = target.GetProcess().GetThreadAtIndex(0)
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=112223&r1=112222&r2=112223&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Thu Aug 26 16:49:29 2010
@@ -171,6 +171,12 @@
else:
raise Exception("Unknown stopReason string")
+#
+# Returns an env variable array from the os.environ map object.
+#
+def EnvArray():
+ return map(lambda k,v: k+"="+v, os.environ.keys(), os.environ.values())
+
class TestBase(unittest2.TestCase):
"""This LLDB abstract base class is meant to be subclassed."""
More information about the lldb-commits
mailing list