[Lldb-commits] [lldb] Revert "[lldb][test] Add FindGlobalVariables tests for C++ inline static data members (#70641) (PR #71378)

via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 6 03:03:45 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Michael Buch (Michael137)

<details>
<summary>Changes</summary>

This reverts commit 934c573b7d24327fafea916a1d0e9a9fc88f87ab.

We had to revert dependencies of this patch due to test failures on Linux:
```
4909814c08fdf4ec8bd9dad4f157d03de7c3c800
ef3febadf606c2fc4f1ad8d85a7ecdde16e4cbb3
```

---
Full diff: https://github.com/llvm/llvm-project/pull/71378.diff


1 Files Affected:

- (modified) lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py (-33) 


``````````diff
diff --git a/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py b/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
index bf656aa2266fdc7..555ff750b97c9fb 100644
--- a/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
+++ b/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
@@ -114,39 +114,6 @@ def test_class_with_only_const_static(self):
 
         self.expect_expr("ClassWithOnlyConstStatic::member", result_value="3")
 
-    def check_global_var(self, name: str, expect_type, expect_val):
-        var_list = self.target().FindGlobalVariables(name, lldb.UINT32_MAX)
-        self.assertEqual(len(var_list), 1)
-        varobj = var_list[0]
-        self.assertEqual(varobj.type.name, expect_type)
-        self.assertEqual(varobj.value, expect_val)
-
-    # For debug-info produced by older versions of clang, inline static data members
-    # wouldn't get indexed into the Names accelerator table preventing LLDB from finding
-    # them.
-    @expectedFailureAll(compiler=["clang"], compiler_version=["<", "18.0"])
-    @expectedFailureAll(debug_info=no_match(["dsym"]))
-    def test_inline_static_members(self):
-        self.build()
-        lldbutil.run_to_source_breakpoint(
-            self, "// break here", lldb.SBFileSpec("main.cpp")
-        )
-
-        self.check_global_var("A::int_val", "const int", "1")
-        self.check_global_var("A::int_val_with_address", "const int", "2")
-        self.check_global_var("A::bool_val", "const bool", "true")
-        self.check_global_var("A::enum_val", "Enum", "enum_case2")
-        self.check_global_var("A::enum_bool_val", "EnumBool", "enum_bool_case1")
-        self.check_global_var("A::scoped_enum_val", "ScopedEnum", "scoped_enum_case2")
-
-        self.check_global_var("ClassWithOnlyConstStatic::member", "const int", "3")
-
-        self.check_global_var("ClassWithConstexprs::member", "const int", "2")
-        self.check_global_var("ClassWithConstexprs::enum_val", "Enum", "enum_case2")
-        self.check_global_var(
-            "ClassWithConstexprs::scoped_enum_val", "ScopedEnum", "scoped_enum_case2"
-        )
-
     # With older versions of Clang, LLDB fails to evaluate classes with only
     # constexpr members when dsymutil is enabled
     @expectedFailureAll(

``````````

</details>


https://github.com/llvm/llvm-project/pull/71378


More information about the lldb-commits mailing list