diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py')
| -rw-r--r-- | packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py | 31 |
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")) |
