@@ -199,7 +199,6 @@ def setup_class(cls):
199199 cls .stltypes = cppyy .load_reflection_info (cls .test_dct )
200200 cls .N = cppyy .gbl .N
201201
202- @mark .xfail
203202 def test01_builtin_type_vector_types (self ):
204203 """Test access to std::vector<int>/std::vector<double>"""
205204
@@ -255,7 +254,7 @@ def test01_builtin_type_vector_types(self):
255254 assert v .size () == self .N
256255 assert len (v ) == self .N
257256
258- @mark .xfail
257+ @mark .xfail ( condition = IS_MAC , run = not IS_MAC , reason = "Crashes on OSX" )
259258 def test02_user_type_vector_type (self ):
260259 """Test access to an std::vector<just_a_class>"""
261260
@@ -389,7 +388,7 @@ def test06_vector_indexing(self):
389388 assert v2 [- 1 ] == v [- 2 ]
390389 assert v2 [self .N - 4 ] == v [- 2 ]
391390
392- @mark .xfail (run = not (( IS_MAC_ARM or IS_MAC_X86 ) and not IS_CLANG_REPL ))
391+ @mark .xfail (condition = ( IS_MAC and not IS_CLANG_REPL ), run = not ( IS_MAC and not IS_CLANG_REPL ), reason = "Crashes on OSX" )
393392 def test07_vector_bool (self ):
394393 """Usability of std::vector<bool> which can be a specialization"""
395394
@@ -1040,7 +1039,7 @@ def setup_class(cls):
10401039 cls .stltypes = cppyy .load_reflection_info (cls .test_dct )
10411040 cls .N = 13
10421041
1043- @mark .xfail
1042+ @mark .xfail ( condition = IS_MAC and not IS_CLANG_REPL , reason = "Fails with OSX-Cling" )
10441043 def test01_builtin_list_type (self ):
10451044 """Test access to a list<int>"""
10461045
@@ -1078,7 +1077,7 @@ def test01_builtin_list_type(self):
10781077 for val in a :
10791078 assert ll [ll .index (val )] == val
10801079
1081- @mark .xfail
1080+ @mark .xfail ( condition = IS_MAC and not IS_CLANG_REPL , reason = "Fails with OSX-Cling" )
10821081 def test02_empty_list_type (self ):
10831082 """Test behavior of empty list<int>"""
10841083
@@ -1139,7 +1138,7 @@ def test05_list_cpp17_style(self):
11391138 v = cppyy .gbl .std .list (l )
11401139 assert list (l ) == l
11411140
1142- @mark .xfail
1141+ @mark .xfail ( condition = IS_MAC , reason = "Fails with OSX" )
11431142 def test06_convert_list_of_strings (self ):
11441143 """Convert list of strings from C++ to Python types"""
11451144
@@ -1162,7 +1161,7 @@ def setup_class(cls):
11621161 cls .stltypes = cppyy .load_reflection_info (cls .test_dct )
11631162 cls .N = 13
11641163
1165- @mark .xfail
1164+ @mark .xfail ( condition = not IS_MAC or not IS_CLANG_REPL , reason = "Fails on Ubuntu and OSX-cling" )
11661165 def test01_builtin_map_type (self ):
11671166 """Test access to a map<int,int>"""
11681167
@@ -1414,7 +1413,7 @@ def test02_STL_like_class_iterators(self):
14141413 assert len (b ) == 3
14151414 assert sum (b ) == 6
14161415
1417- @mark .xfail
1416+ @mark .xfail ( condition = not IS_MAC and IS_CLANG_REPL , run = False , reason = "Crashes on Ubuntu cling-REPL" )
14181417 def test03_stllike_preinc (self ):
14191418 """STL-like class with preinc by-ref returns"""
14201419
@@ -1697,7 +1696,7 @@ def setup_class(cls):
16971696 cls .stltypes = cppyy .load_reflection_info (cls .test_dct )
16981697 cls .N = cppyy .gbl .N
16991698
1700- @mark .xfail
1699+ @mark .xfail ( condition = IS_MAC and not IS_CLANG_REPL , reason = "Fails with OSX-Cling" )
17011700 def test01_set_iteration (self ):
17021701 """Iterate over a set"""
17031702
0 commit comments