@@ -70,6 +70,13 @@ def test_info_args(
7070 Issue: https://github.com/numba/numba/issues/7414
7171 Fix: https://github.com/numba/numba/pull/7177
7272 """
73+ if (
74+ script == "simple_dpex_func.py"
75+ or script == "side-by-side.py --api=numba-dpex-kernel"
76+ ):
77+ pytest .xfail (
78+ "Expected Failure for these files."
79+ ) # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
7380
7481 setup_breakpoint (app , breakpoint , script , expected_line = expected_line )
7582
@@ -90,6 +97,7 @@ def test_info_args(
9097 app .child .expect (expected_whatis )
9198
9299
100+ @pytest .mark .xfail # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
93101@skip_no_numba056
94102def test_info_functions (app ):
95103 expected_line = r"13\s+i = dpex.get_global_id\(0\)"
@@ -145,7 +153,7 @@ def side_by_side_2_info_locals_case(api):
145153@pytest .mark .parametrize (
146154 "env, breakpoint, script, expected_line, expected_info_locals, expected_info" ,
147155 [
148- (
156+ pytest . param (
149157 {"NUMBA_OPT" : 0 },
150158 "sum_local_vars.py:16" ,
151159 "sum_local_vars.py" ,
@@ -175,6 +183,7 @@ def side_by_side_2_info_locals_case(api):
175183 r"type = float64" ,
176184 ),
177185 ),
186+ marks = pytest .mark .xfail ,
178187 ),
179188 # FIXME: NUMBA_OPT=1 will not able to stop at breakpoint
180189 pytest .param (
@@ -184,36 +193,42 @@ def side_by_side_2_info_locals_case(api):
184193 r"16\s+c\[i\] = l1 \+ l2" ,
185194 ("No locals." ,),
186195 (),
187- marks = pytest .mark .xfail ,
196+ marks = pytest .mark .xfail , # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
188197 ),
189- (
198+ pytest . param (
190199 {"NUMBA_EXTEND_VARIABLE_LIFETIMES" : 1 },
191200 "side-by-side.py:18" ,
192201 "side-by-side.py --api=numba-dpex-kernel" ,
193202 None ,
194203 (r"param_c = 0" , r"param_d = 0" , r"result = 10" ),
195204 (),
205+ marks = pytest .mark .xfail , # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
196206 ),
197- (
207+ pytest . param (
198208 {"NUMBA_EXTEND_VARIABLE_LIFETIMES" : 0 },
199209 "side-by-side.py:18" ,
200210 "side-by-side.py --api=numba-dpex-kernel" ,
201211 None ,
202212 (r"param_c = 0" , r"param_d = 0" , r"result = 10" ),
203213 (),
214+ marks = pytest .mark .xfail , # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
204215 ),
205216 side_by_side_info_locals_case ("numba" ),
206217 pytest .param (
207218 * side_by_side_info_locals_case ("numba-dpex-kernel" ),
208219 marks = [
209- pytest .mark .xfail (reason = "dpex isn't stoping with condition" )
220+ pytest .mark .xfail (
221+ reason = "dpex isn't stoping with condition"
222+ ) # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
210223 ],
211224 ),
212225 side_by_side_2_info_locals_case ("numba" ),
213226 pytest .param (
214227 * side_by_side_2_info_locals_case ("numba-dpex-kernel" ),
215228 marks = [
216- pytest .mark .xfail (reason = "dpex isn't stoping with condition" )
229+ pytest .mark .xfail (
230+ reason = "dpex isn't stoping with condition"
231+ ) # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
217232 ],
218233 ),
219234 ],
@@ -277,7 +292,9 @@ def side_by_side_2_print_array_element_case(api):
277292 pytest .param (
278293 * side_by_side_2_print_array_element_case ("numba-dpex-kernel" ),
279294 marks = [
280- pytest .mark .xfail (reason = "dpex isn't stoping with condition" )
295+ pytest .mark .xfail (
296+ reason = "dpex isn't stoping with condition"
297+ ) # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
281298 ],
282299 ),
283300 ],
@@ -294,6 +311,8 @@ def test_print_array_element(app, breakpoint, script, expected_info):
294311 app .child .expect (expected_print )
295312
296313
314+ # FIXME: crashes test execution
315+ @pytest .mark .skip # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
297316def side_by_side_2_assignment_to_variable_case (api ):
298317 return (
299318 "side-by-side-2.py:19 if param_a == 5" ,
@@ -316,7 +335,9 @@ def side_by_side_2_assignment_to_variable_case(api):
316335 pytest .param (
317336 * side_by_side_2_assignment_to_variable_case ("numba-dpex-kernel" ),
318337 marks = [
319- pytest .mark .xfail (reason = "dpex isn't stoping with condition" )
338+ pytest .mark .xfail (
339+ reason = "dpex isn't stoping with condition"
340+ ) # TODO: https://github.com/IntelPython/numba-dpex/issues/1216
320341 ],
321342 ),
322343 ],
0 commit comments