From: Muhammad Omair Javaid Date: Mon, 29 May 2023 12:14:51 +0000 (+0400) Subject: [LLDB] Fix TestVarPath.py for AArch64 Windows X-Git-Tag: upstream/17.0.6~6910 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2a866170c4961137608eee1c26f6eaa1e8e62a1;p=platform%2Fupstream%2Fllvm.git [LLDB] Fix TestVarPath.py for AArch64 Windows 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 --- diff --git a/lldb/test/API/functionalities/var_path/TestVarPath.py b/lldb/test/API/functionalities/var_path/TestVarPath.py index 06b4a2d..f79b2a7 100644 --- a/lldb/test/API/functionalities/var_path/TestVarPath.py +++ b/lldb/test/API/functionalities/var_path/TestVarPath.py @@ -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'")