Skip to content

Commit

Permalink
Merge pull request #3616 from stuartarchibald/fix/skip_gdb_on_arm
Browse files Browse the repository at this point in the history
Skip gdb tests on ARM.
  • Loading branch information
stuartarchibald committed Dec 19, 2018
2 parents 81b6267 + 413051c commit 09eceb8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions numba/tests/test_gdb.py
Expand Up @@ -3,6 +3,7 @@
"""
from __future__ import print_function
import os
import platform
import subprocess
import sys
import threading
Expand All @@ -18,13 +19,17 @@

_platform = sys.platform

_unix_like = (_platform.startswith('linux') or
_platform.startswith('darwin') or
('bsd' in _platform))
_unix_like = (_platform.startswith('linux')
or _platform.startswith('darwin')
or ('bsd' in _platform))

unix_only = unittest.skipUnless(_unix_like, "unix-like OS is required")
not_unix = unittest.skipIf(_unix_like, "non unix-like OS is required")

_arch_name = platform.machine()
_is_arm = _arch_name in {'aarch64', 'armv7l'}
not_arm = unittest.skipIf(_is_arm, "testing disabled on ARM")

_gdb_cond = os.environ.get('GDB_TEST', None) == '1'
needs_gdb_harness = unittest.skipUnless(_gdb_cond, "needs gdb harness")

Expand Down Expand Up @@ -71,6 +76,7 @@ def impl_gdb_split_init_and_break_w_parallel(a):
print(a, b, c, d)


@not_arm
@unix_only
class TestGdbBindImpls(TestCase):
"""
Expand Down Expand Up @@ -132,6 +138,7 @@ def test_gdb_split_init_and_break_w_parallel_objmode_impl(self):
_dbg_jit(impl_gdb_split_init_and_break_w_parallel)(10)


@not_arm
@unix_only
@needs_gdb
class TestGdbBinding(TestCase):
Expand Down Expand Up @@ -211,6 +218,7 @@ def generate(cls):
TestGdbBinding.generate()


@not_arm
@unix_only
@needs_gdb
class TestGdbMisc(TestCase):
Expand Down

0 comments on commit 09eceb8

Please sign in to comment.