Skip to content

Commit 9c81f11

Browse files
Vipul-Cariappavgvassilev
authored andcommitted
[test] update tags
fixed by compiler-research/cppyy-backend#116
1 parent 19303c2 commit 9c81f11

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

test/test_advancedcpp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,6 @@ class Y {
836836
y = cppyy.gbl.PrintingNS.Y()
837837
assert str(y) == 'Y'
838838

839-
@mark.xfail
840839
def test26_using_directive(self):
841840
"""Test using directive in namespaces"""
842841

test/test_cpp11features.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def test05_unique_ptr_passing(self):
196196
gc.collect()
197197
assert TestSmartPtr.s_counter == 0
198198

199-
@mark.xfail
200199
def test06_nullptr(self):
201200
"""Allow the programmer to pass NULL in certain cases"""
202201

test/test_crossinheritance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def get_value(self):
128128
assert c4.m_int == 88
129129
assert CX.IBase2.call_get_value(c4) == 77
130130

131-
@mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
131+
@mark.xfail(condition=IS_MAC_ARM, run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
132132
def test04_arguments(self):
133133
"""Test ability to override functions that take arguments"""
134134

test/test_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def test24_C_style_enum(self):
684684
CSE.your_enum = CSE.YourEnum.kFour
685685
assert CSE.your_enum == CSE.YourEnum.kFour
686686

687-
@mark.xfail
687+
@mark.xfail(condition=IS_MAC and not IS_CLANG_REPL, reason="Fails with OSX-Cling")
688688
def test25_const_iterator(self):
689689
"""const_iterator failed to resolve the proper return type"""
690690

test/test_stltypes.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)