aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2025-05-28 10:12:49 +0000
committerDavid Spickett <david.spickett@linaro.org>2025-05-28 10:14:28 +0000
commit8b6e98559de15dc75edddf616ed37c5b6e23dfba (patch)
treeb7d3c6b095c6cfdb0a0bf9ba0c7a0a2affe89aac
parentd1592a966bc22b94362380aa690eeb92f42b8ca0 (diff)
downloadllvm-8b6e98559de15dc75edddf616ed37c5b6e23dfba.zip
llvm-8b6e98559de15dc75edddf616ed37c5b6e23dfba.tar.gz
llvm-8b6e98559de15dc75edddf616ed37c5b6e23dfba.tar.bz2
[lldb][test] Skip DIL array subscript test on Windows
This has been flaky on Linaro's Windows on Arm bot, failing with errors all along these lines: Traceback (most recent call last): File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\commands\frame\var-dil\basics\ArraySubscript\TestFrameVarDILArraySubscript.py", line 56, in test_subscript self.expect_var_path("int_arr[100]", True, type="int") File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\commands\frame\var-dil\basics\ArraySubscript\TestFrameVarDILArraySubscript.py", line 15, in expect_var_path value_dil = super().expect_var_path(expr, value=value, type=type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2589, in expect_var_path value_check.check_value(self, eval_result, str(eval_result)) File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 301, in check_value test_base.assertSuccess(val.GetError()) File "C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2597, in assertSuccess self.fail(self._formatMessage(msg, "'{}' is not success".format(error))) AssertionError: 'read memory from 0x68119c00b0 failed (0 of 4 bytes read)' is not success I think this is because we are trying to read off of the top of the stack which is unmapped memory on Windows. I have a fix I'm going to put in review shortly.
-rw-r--r--lldb/test/API/commands/frame/var-dil/basics/ArraySubscript/TestFrameVarDILArraySubscript.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/API/commands/frame/var-dil/basics/ArraySubscript/TestFrameVarDILArraySubscript.py b/lldb/test/API/commands/frame/var-dil/basics/ArraySubscript/TestFrameVarDILArraySubscript.py
index 740a64f..66f4c62 100644
--- a/lldb/test/API/commands/frame/var-dil/basics/ArraySubscript/TestFrameVarDILArraySubscript.py
+++ b/lldb/test/API/commands/frame/var-dil/basics/ArraySubscript/TestFrameVarDILArraySubscript.py
@@ -19,6 +19,8 @@ class TestFrameVarDILArraySubscript(TestBase):
self.runCmd("settings set target.experimental.use-DIL true")
self.assertEqual(value_dil.GetValue(), value_frv.GetValue())
+ # int_arr[100] sometimes points to above the stack region, fix coming soon.
+ @skipIfWindows
def test_subscript(self):
self.build()
lldbutil.run_to_source_breakpoint(