Skip to content

Commit

Permalink
[lldb] [test] Skip AVX lldb-server test on non-x86 architectures
Browse files Browse the repository at this point in the history
Skip the AVX-related lldb-server test on non-x86 architectures, as they
do not support AVX.  While technically the test worked on Linux because
the AVX check would simply return false, other platforms do not provide
such a straightforward way of checking for AVX (especially remotely),
and the results of such check may need to be interpreted specially
for the platform in question.

Differential Revision: https://reviews.llvm.org/D97450
  • Loading branch information
mgorny committed Mar 1, 2021
1 parent 15f067f commit 95a1305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def targetHasAVX(self):
return " avx " in cpuinfo

@expectedFailureAll(oslist=["windows"]) # no avx for now.
@skipIf(archs=no_match(['amd64', 'i386', 'x86_64']))
@add_test_categories(["llgs"])
def test_qRegisterInfo_contains_avx_registers(self):
self.build()
Expand Down

0 comments on commit 95a1305

Please sign in to comment.