summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
diff options
context:
space:
mode:
authordlav-sc <daniil.avdeev@syntacore.com>2025-09-03 19:22:55 +0300
committerGitHub <noreply@github.com>2025-09-03 19:22:55 +0300
commit3b3fc701d8f83d4ca30ee1c818fb7687336ac178 (patch)
tree5d0d7389d462185200d149bb254170035f5bc4a0 /lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
parent5545a92079012b5e501e5d7a5cbe1105a5dec9a4 (diff)
[lldb][RISCV][test] make atomic region stepping test more robust (#156506)
Currently, the tests that check stepping through atomic sequences use a hardcoded step distance, which is unreliable because this distance depends on LLVM's codegeneration. The relocations that clang emits can change the distance of the step. Additionally, it was a poor idea to compute and check the step distance because that is not what we should actually be verifying. In the tests we already know where execution should stop after the step - for example, at a branch instruction - therefore, it is better to check the opcode of the instruction rather than the step distance. The step distance itself is not important and can sometimes be misleading. This patch rewrites the tests, so now they checks the opcode of the instruction after the step instead of the step distance.
Diffstat (limited to 'lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions