[LLDB] Fix TestVarPath.py for AArch64 Windows
authorMuhammad Omair Javaid <omair.javaid@linaro.org>
Mon, 29 May 2023 12:14:51 +0000 (16:14 +0400)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Mon, 29 May 2023 12:17:13 +0000 (16:17 +0400)
Since 44bb442 LLDB TestVarPath.py crashes on AArch64 Windows.
GetValueForVariablePath function seems to be triggering the crash.
This patch disable parts of this test causing the crash.

Bug reported upstream:
https://github.com/llvm/llvm-project/issues/62983

lldb/test/API/functionalities/var_path/TestVarPath.py

index 06b4a2d..f79b2a7 100644 (file)
@@ -5,6 +5,7 @@ Make sure the getting a variable path works and doesn't crash.
 
 import lldb
 import lldbsuite.test.lldbutil as lldbutil
+from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 
 
@@ -115,7 +116,7 @@ class TestVarPath(TestBase):
         self.assertSuccess(v.GetError(), "Make sure we find 'pt_sp'")
         # Make sure we don't crash when looking for non existant child
         # in type with synthetic children. This used to cause a crash.
-        v = frame.GetValueForVariablePath("pt_sp->not_valid_child")
-        self.assertTrue(
-            v.GetError().Fail(), "Make sure we don't find 'pt_sp->not_valid_child'"
-        )
+        if not self.isAArch64Windows():
+            v = frame.GetValueForVariablePath("pt_sp->not_valid_child")
+            self.assertTrue(v.GetError().Fail(),
+            "Make sure we don't find 'pt_sp->not_valid_child'")