[lldb/Test] Skip tests that try to get the remote environment
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 4 Aug 2020 21:00:30 +0000 (14:00 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 4 Aug 2020 21:01:57 +0000 (14:01 -0700)
We don't support getting the remote environment. The gdb remote protocol
has no packet for that.

lldb/test/API/python_api/sbenvironment/TestSBEnvironment.py
lldb/test/API/python_api/sbplatform/TestSBPlatform.py

index 6389854..62c3ac2 100644 (file)
@@ -31,6 +31,7 @@ class SBEnvironmentAPICase(TestBase):
 
 
     @add_test_categories(['pyapi'])
+    @skipIfRemote # Remote environment not supported.
     def test_platform_environment(self):
         env = self.dbg.GetSelectedPlatform().GetEnvironment()
         # We assume at least PATH is set
@@ -67,6 +68,7 @@ class SBEnvironmentAPICase(TestBase):
 
 
     @add_test_categories(['pyapi'])
+    @skipIfRemote # Remote environment not supported.
     def test_target_environment(self):
         env = self.dbg.GetSelectedTarget().GetEnvironment()
         # There is no target, so env should be empty
index 4735f6e..3fa4c10 100644 (file)
@@ -9,6 +9,7 @@ class SBPlatformAPICase(TestBase):
     NO_DEBUG_INFO_TESTCASE = True
 
     @add_test_categories(['pyapi'])
+    @skipIfRemote # Remote environment not supported.
     def test_run(self):
         self.build()
         plat = lldb.SBPlatform.GetHostPlatform()