[Lldb-commits] [lldb] ba3d84d - [lldb/Test] Skip tests that try to get the remote environment

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 4 14:02:05 PDT 2020


Author: Jonas Devlieghere
Date: 2020-08-04T14:01:57-07:00
New Revision: ba3d84d82b750296c11e843365aa85962a561ad4

URL: https://github.com/llvm/llvm-project/commit/ba3d84d82b750296c11e843365aa85962a561ad4
DIFF: https://github.com/llvm/llvm-project/commit/ba3d84d82b750296c11e843365aa85962a561ad4.diff

LOG: [lldb/Test] Skip tests that try to get the remote environment

We don't support getting the remote environment. The gdb remote protocol
has no packet for that.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/python_api/sbenvironment/TestSBEnvironment.py b/lldb/test/API/python_api/sbenvironment/TestSBEnvironment.py
index 6389854ce58f..62c3ac2e5022 100644
--- a/lldb/test/API/python_api/sbenvironment/TestSBEnvironment.py
+++ b/lldb/test/API/python_api/sbenvironment/TestSBEnvironment.py
@@ -31,6 +31,7 @@ def assertEqualEntries(self, env, entries):
 
 
     @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 @@ def test_launch_info(self):
 
 
     @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

diff  --git a/lldb/test/API/python_api/sbplatform/TestSBPlatform.py b/lldb/test/API/python_api/sbplatform/TestSBPlatform.py
index 4735f6ea3b49..3fa4c10b401e 100644
--- a/lldb/test/API/python_api/sbplatform/TestSBPlatform.py
+++ b/lldb/test/API/python_api/sbplatform/TestSBPlatform.py
@@ -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()


        


More information about the lldb-commits mailing list