Skip to content

Commit

Permalink
Skip OrcJIT tests on non-x86 platforms
Browse files Browse the repository at this point in the history
Since OrcJIT is still experimental, and there seem to be some issues on
platforms we don't regularly test on (e.g. Issue numba#1000), it seems
prudent to simply skip the OrcJIT tests on non-x86 platforms.
  • Loading branch information
gmarkall committed Oct 12, 2023
1 parent cbdc770 commit 6fc1466
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llvmlite/tests/test_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,11 @@ def jit(self, mod, target_machine=None):
return llvm.create_mcjit_compiler(mod, target_machine)


# There are some memory corruption issues with OrcJIT on AArch64 - see Issue
# #1000. Since OrcJIT is experimental, and we don't test regularly during
# llvmlite development on non-x86 platforms, it seems safest to skip these
# tests on non-x86 platforms.
@unittest.skipUnless(platform.machine().startswith("x86"), "x86 only")
class TestOrcLLJIT(BaseTest):

def jit(self, asm=asm_sum, func_name="sum", target_machine=None,
Expand Down

0 comments on commit 6fc1466

Please sign in to comment.