Skip to content

Commit

Permalink
[ci] Disable crashing tests on Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronj0 committed May 4, 2024
1 parent bc5cd0e commit 2e81018
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions test/test_crossinheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def sum_value(self, val):
assert 'ValueError' in res
assert os.path.basename(__file__) in res

@mark.xfail(run=not IS_MAC_ARM, condition=IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
def test09_interface_checking(self):
"""Conversion errors should be Python exceptions"""

Expand Down
4 changes: 2 additions & 2 deletions test/test_datatypes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import py, os, sys
from pytest import raises, skip, mark
from .support import setup_make, pylong, pyunicode, IS_CLANG_REPL, IS_MAC_X86
from .support import setup_make, pylong, pyunicode, IS_CLANG_REPL, IS_MAC_X86, IS_MAC_ARM

currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("datatypesDict"))
Expand Down Expand Up @@ -1410,7 +1410,7 @@ def pyd(arg0, arg1):
gc.collect()
raises(TypeError, c, 3, 3) # lambda gone out of scope

@mark.xfail
@mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
def test28_callable_through_function_passing(self):
"""Passing callables through std::function"""

Expand Down
10 changes: 5 additions & 5 deletions test/test_doc_features.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import py, os, sys
from pytest import raises, skip, mark
from .support import setup_make, ispypy, IS_WINDOWS, IS_CLANG_REPL, IS_CLANG_DEBUG, IS_MAC_X86
from .support import setup_make, ispypy, IS_WINDOWS, IS_CLANG_REPL, IS_CLANG_DEBUG, IS_MAC_X86, IS_MAC_ARM

currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("doc_helperDict"))
Expand Down Expand Up @@ -387,7 +387,7 @@ def test_unary_operators(sef):

pass

@mark.xfail
@mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
def test_x_inheritance(self):
import cppyy
from cppyy.gbl import Abstract, Concrete, call_abstract_method
Expand Down Expand Up @@ -453,7 +453,7 @@ def abstract_method2(self):
assert cppyy.gbl.call_abstract_method1(pc) == "first message"
assert cppyy.gbl.call_abstract_method2(pc) == "second message"

@mark.xfail
@mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
def test_exceptions(self):
"""Exception throwing and catching"""

Expand Down Expand Up @@ -1125,7 +1125,7 @@ def add(self, i):
m = PyMyClass(1)
assert CC.callb(m, 2) == 5

@mark.xfail(condition=IS_CLANG_REPL, reason="Fails with ClangRepl")
@mark.xfail(run=not IS_MAC_ARM, condition=IS_CLANG_REPL, reason="Fails with ClangRepl, Crashes on OS X arm")
def test_cross_and_templates(self):
"""Template instantiation with cross-inheritance example"""

Expand Down Expand Up @@ -1244,7 +1244,7 @@ def test_autocast_and_identiy(self):
assert type(b) == CC.Derived
assert d is b

@mark.xfail
@mark.xfail(run=not IS_MAC_ARM, reason="Seg Faults")
def test_exceptions(self):
"""Exceptions example"""

Expand Down
4 changes: 2 additions & 2 deletions test/test_overloads.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import py, os, sys
from pytest import raises, skip, mark
from .support import setup_make, ispypy, IS_WINDOWS, IS_MAC_X86
from .support import setup_make, ispypy, IS_WINDOWS, IS_MAC_X86, IS_MAC_ARM

currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("overloadsDict"))
Expand Down Expand Up @@ -206,7 +206,7 @@ def test09_bool_int_overloads(self):
with raises(ValueError):
cpp.BoolInt4.fff(2)

@mark.xfail
@mark.xfail(run=not IS_MAC_ARM, reason="Seg Faults")
def test10_overload_and_exceptions(self):
"""Prioritize reporting C++ exceptions from callee"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_stltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ def run_raiseit(t1, t2):
gc.collect()
assert cppyy.gbl.GetMyErrorCount() == 0

@mark.xfail
@mark.xfail(run=not IS_MAC_ARM, reason="Seg Faults")
def test04_from_cpp(self):
"""Catch C++ exceptiosn from C++"""

Expand Down

0 comments on commit 2e81018

Please sign in to comment.