11import py , os , sys
22from pytest import raises , skip , mark
3- from .support import setup_make , pylong , IS_MAC_ARM , IS_MAC , IS_CLANG_REPL , IS_CLANG_DEBUG
3+ from .support import setup_make , pylong , IS_MAC_ARM , IS_MAC , IS_CLANG_REPL , IS_CLANG_DEBUG , IS_LINUX_ARM
44
55
66currpath = py .path .local (__file__ ).dirpath ()
@@ -36,6 +36,7 @@ def get_value(self):
3636 assert Base1 .call_get_value (Base1 ()) == 42
3737 assert Base1 .call_get_value (Derived ()) == 13
3838
39+ @mark .xfail (run = False , condition = IS_LINUX_ARM , reason = "Crashes pytest on Linux ARM" )
3940 def test02_constructor (self ):
4041 """Test constructor usage for derived classes"""
4142
@@ -72,6 +73,7 @@ def get_value(self):
7273 assert d .get_value () == 29
7374 assert Base1 .call_get_value (d ) == 29
7475
76+ @mark .xfail (run = False , condition = IS_LINUX_ARM , reason = "Crashes pytest on Linux ARM" )
7577 def test03_override_function_abstract_base (self ):
7678 """Test ability to override a simple function with an abstract base"""
7779
@@ -164,6 +166,7 @@ def pass_value5(self, b):
164166 d2 = Derived2 ()
165167 assert Base1 .sum_pass_value (d2 ) == 12 + 4 * d2 .m_int
166168
169+ @mark .xfail (run = False , condition = IS_LINUX_ARM , reason = "Crashes pytest on Linux ARM" )
167170 def test05_override_overloads (self ):
168171 """Test ability to override overloaded functions"""
169172
@@ -184,6 +187,7 @@ def sum_all(self, *args):
184187 assert d .sum_all (- 7 , - 5 ) == 1
185188 assert Base1 .call_sum_all (d , - 7 , - 5 ) == 1
186189
190+ @mark .xfail (run = False , condition = IS_LINUX_ARM , reason = "Crashes pytest on Linux ARM" )
187191 def test06_const_methods (self ):
188192 """Declared const methods should keep that qualifier"""
189193
@@ -206,6 +210,7 @@ def __init__(self):
206210 assert CX .IBase4 .call_get_value (c1 ) == 17
207211 assert CX .IBase4 .call_get_value (c2 ) == 27
208212
213+ @mark .xfail (run = False , condition = IS_LINUX_ARM , reason = "Fails with ModuleNotFound error" )
209214 def test07_templated_base (self ):
210215 """Derive from a base class that is instantiated from a template"""
211216
@@ -505,7 +510,8 @@ def __init__(self):
505510 assert m .my_data == 42
506511 assert m .get_data () == 42
507512 assert m .get_data_v () == 42
508-
513+
514+ @mark .xfail (run = False , condition = IS_LINUX_ARM , reason = "Crashes pytest on Linux ARM" )
509515 def test15_object_returns (self ):
510516 """Return of C++ objects from overridden functions"""
511517
@@ -740,6 +746,7 @@ class Derived(ns.Base):
740746 def abstract1 (self ):
741747 return ns .Result (1 )
742748
749+ @mark .xfail (run = False , condition = IS_LINUX_ARM , reason = "Crashes pytest on Linux ARM" )
743750 def test20_basic_multiple_inheritance (self ):
744751 """Basic multiple inheritance"""
745752
@@ -818,6 +825,7 @@ def z(self):
818825 assert a .m_2 == 42
819826 assert a .m_3 == 67
820827
828+ @mark .xfail (run = not IS_CLANG_DEBUG , reason = "Crashes with ClangRepl with 'toString not implemented'" )
821829 def test21_multiple_inheritance_with_constructors (self ):
822830 """Multiple inheritance with constructors"""
823831
@@ -905,6 +913,7 @@ def z(self):
905913 assert a .m_2 == 88
906914 assert a .m_3 == - 11
907915
916+ @mark .xfail (run = not IS_CLANG_DEBUG , reason = "Crashes with ClangRepl with 'toString not implemented'" )
908917 def test22_multiple_inheritance_with_defaults (self ):
909918 """Multiple inheritance with defaults"""
910919
@@ -1276,6 +1285,7 @@ class D(B):
12761285 assert inst .fun1 () == val1
12771286 assert inst .fun2 () == inst .fun1 ()
12781287
1288+ @mark .xfail (run = not IS_CLANG_DEBUG , reason = "Crashes with ClangRepl with 'toString not implemented'" )
12791289 def test29_cross_deep_multi (self ):
12801290 """Deep multi-inheritance hierarchy"""
12811291
@@ -1517,6 +1527,7 @@ def getValue(self):
15171527 gc .collect ()
15181528 assert ns .Component .get_count () == 0
15191529
1530+ @mark .xfail (run = not IS_CLANG_DEBUG , reason = "Crashes with ClangRepl with 'toString not implemented'" )
15201531 def test32_by_value_arguments (self ):
15211532 """Override base function taking by-value arguments"""
15221533
0 commit comments