From 27c412320e09189dade1cde7e11932a849930edd Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 26 Aug 2010 21:49:29 +0000 Subject: [PATCH] Added a utility function EnvArray() to lldbtest.py. llvm-svn: 112223 --- lldb/test/array_types/TestArrayTypes.py | 1 + lldb/test/lldbtest.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lldb/test/array_types/TestArrayTypes.py b/lldb/test/array_types/TestArrayTypes.py index 0b5a227a8d8d..ba43a51e2ccc 100644 --- a/lldb/test/array_types/TestArrayTypes.py +++ b/lldb/test/array_types/TestArrayTypes.py @@ -67,6 +67,7 @@ class TestArrayTypes(TestBase): 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) diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 5da2343d03e6..662a7a814bf0 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -171,6 +171,12 @@ def Enum(stopReason): 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."""