From ca38766c9c50da3b310c9a1c07adff392ce6b2e4 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 13 Mar 2018 21:06:05 +0000 Subject: 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 --- .../lldbsuite/test/functionalities/platform/TestPlatformPython.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test') 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 @@ -49,6 +49,14 @@ class PlatformPythonTestCase(TestBase): break self.assertTrue(platform_found) + @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): -- cgit v1.2.3