aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorGeorgiy Samoylov <g.samoylov@syntacore.com>2025-03-07 12:27:39 +0300
committerGitHub <noreply@github.com>2025-03-07 09:27:39 +0000
commit9c08e650cd83e3e891dd2972ae1852ae1763c7ff (patch)
tree627f17f675960b8e92d6fc832aaef47503e12ba4 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parenteb4a7052f64ef22c87a402a198f21f30da379af8 (diff)
downloadllvm-9c08e650cd83e3e891dd2972ae1852ae1763c7ff.zip
llvm-9c08e650cd83e3e891dd2972ae1852ae1763c7ff.tar.gz
llvm-9c08e650cd83e3e891dd2972ae1852ae1763c7ff.tar.bz2
[lldb] Adapt llgs tests for RISC-V (#130034)
Some lldb tests from llgs category fail on RISC-V target due to lack of necessary condition checks. This patch adapts these tests by taking into account the peculiarities of the RISC-V architecture
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 81b2863..7d0e6e9 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1393,6 +1393,10 @@ class Base(unittest.TestCase):
def isLoongArchLASX(self):
return self.isLoongArch() and "lasx" in self.getCPUInfo()
+ def isRISCV(self):
+ """Returns true if the architecture is RISCV64 or RISCV32."""
+ return self.getArchitecture() in ["riscv64", "riscv32"]
+
def getArchitecture(self):
"""Returns the architecture in effect the test suite is running with."""
return lldbplatformutil.getArchitecture()