From a581468d7b48da92e734e7cf0cfcde0c808d1a39 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 21 Jan 2013 19:25:05 -0500 Subject: [PATCH] Be more specific about test exclusions. --- test/test_wrapper.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/test/test_wrapper.py b/test/test_wrapper.py index 969d5e6c..c6a71a96 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -189,9 +189,13 @@ class TestCL: except AttributeError: pass except RuntimeError: - raise RuntimeError("weird exception from OpenCL implementation " - "on invalid kernel name--are you using " - "Intel's implementation? (if so, known bug in Intel CL)") + if "Intel" in device.platform.vendor: + from pytest import xfail + xfail("weird exception from OpenCL implementation " + "on invalid kernel name--are you using " + "Intel's implementation? (if so, known bug in Intel CL)") + else: + raise @pytools.test.mark_test.opencl def test_image_format_constructor(self): @@ -255,9 +259,9 @@ class TestCL: from py.test import skip skip("images not supported on %s" % device) - #if device.platform.vendor == "Intel(R) Corporation": - #from py.test import skip - #skip("images crashy on %s" % device) + if "Intel" in device.vendor and "31360.31426" in device.version: + from py.test import skip + skip("images crashy on %s" % device) prg = cl.Program(context, """ __kernel void copy_image( -- GitLab