summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
commit88c643b6fec27eec436c8d138fee6346e92337d6 (patch)
tree82cd13b2f3cde1c9e5f79689ba4e6ba67694843f /packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py
parent94994d372d014ce4c8758b9605d63fae651bd8aa (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py')
-rw-r--r--packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py b/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py
deleted file mode 100644
index ee4a102fc145e..0000000000000
--- a/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py
+++ /dev/null
@@ -1,31 +0,0 @@
-"""
-Test SBLaunchInfo
-"""
-
-from __future__ import print_function
-
-
-from lldbsuite.test.lldbtest import *
-
-
-def lookup(info, key):
- for i in range(info.GetNumEnvironmentEntries()):
- KeyEqValue = info.GetEnvironmentEntryAtIndex(i)
- Key, Value = KeyEqValue.split("=")
- if Key == key:
- return Value
- return ""
-
-class TestSBLaunchInfo(TestBase):
-
- mydir = TestBase.compute_mydir(__file__)
- NO_DEBUG_INFO_TESTCASE = True
-
- def test_environment_getset(self):
- info = lldb.SBLaunchInfo(None)
- info.SetEnvironmentEntries(["FOO=BAR"], False)
- self.assertEquals(1, info.GetNumEnvironmentEntries())
- info.SetEnvironmentEntries(["BAR=BAZ"], True)
- self.assertEquals(2, info.GetNumEnvironmentEntries())
- self.assertEquals("BAR", lookup(info, "FOO"))
- self.assertEquals("BAZ", lookup(info, "BAR"))