diff options
author | Jim Ingham <jingham@apple.com> | 2018-03-13 21:06:05 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2018-03-13 21:06:05 +0000 |
commit | ca38766c9c50da3b310c9a1c07adff392ce6b2e4 (patch) | |
tree | d4a9a6bd8b78a272dfe7021088274c4c377c8615 /lldb/packages/Python | |
parent | 0805b80a73687c02884898647f34cd87e0edf9a4 (diff) | |
download | bcm5719-llvm-ca38766c9c50da3b310c9a1c07adff392ce6b2e4.tar.gz bcm5719-llvm-ca38766c9c50da3b310c9a1c07adff392ce6b2e4.zip |
Add a missing return in SBPlatform::IsConnected and test
for the behavior - using the fact that the Host platform
is always present & connected.
llvm-svn: 327448
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/platform/TestPlatformPython.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/platform/TestPlatformPython.py b/lldb/packages/Python/lldbsuite/test/functionalities/platform/TestPlatformPython.py index 54ea33ad24a..b81446f5a58 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/platform/TestPlatformPython.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/platform/TestPlatformPython.py @@ -51,6 +51,14 @@ class PlatformPythonTestCase(TestBase): @add_test_categories(['pyapi']) @no_debug_info_test + def test_host_is_connected(self): + # We've already tested that this one IS the host platform. + host_platform = self.dbg.GetPlatformAtIndex(0) + self.assertTrue(host_platform.IsConnected(), "The host platform is always connected") + + + @add_test_categories(['pyapi']) + @no_debug_info_test def test_available_platform_list(self): """Test SBDebugger::GetNumAvailablePlatforms() and GetAvailablePlatformInfoAtIndex() API""" num_platforms = self.dbg.GetNumAvailablePlatforms() |