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 2e078ce9446b0..e63a26f543cc4 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 @@ -118,7 +118,7 @@ def test_class_with_only_const_static(self): 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) + self.assertGreaterEqual(len(var_list), 1) varobj = var_list[0] self.assertEqual(varobj.type.name, expect_type) self.assertEqual(varobj.value, expect_val)