From 5a7095996011c7484dbe6e603e61de44749f03c7 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 30 Jun 2015 18:23:41 -0500
Subject: [PATCH] Skip tests involving modf,frexp on pocl

---
 test/test_clmath.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test/test_clmath.py b/test/test_clmath.py
index 9c322cdf..8329f40b 100644
--- a/test/test_clmath.py
+++ b/test/test_clmath.py
@@ -204,6 +204,10 @@ def test_modf(ctx_factory):
     context = ctx_factory()
     queue = cl.CommandQueue(context)
 
+    if context.devices[0].platform.name == "Portable Computing Language":
+        # https://github.com/pocl/pocl/issues/198
+        pytest.skip("POCL doesn't seem to have modf")
+
     for s in sizes:
         a = cl_array.arange(queue, s, dtype=np.float32)/10
         fracpart, intpart = clmath.modf(a)
@@ -223,6 +227,10 @@ def test_frexp(ctx_factory):
     context = ctx_factory()
     queue = cl.CommandQueue(context)
 
+    if context.devices[0].platform.name == "Portable Computing Language":
+        # https://github.com/pocl/pocl/issues/198
+        pytest.skip("POCL doesn't seem to have frexp")
+
     for s in sizes:
         a = cl_array.arange(queue, s, dtype=np.float32)/10
         significands, exponents = clmath.frexp(a)
@@ -252,6 +260,10 @@ def test_bessel(ctx_factory):
         from pytest import skip
         skip("no double precision support--cannot test bessel function")
 
+    if ctx.devices[0].platform.name == "Portable Computing Language":
+        # https://github.com/pocl/pocl/issues/198
+        pytest.skip("POCL doesn't seem to have frexp")
+
     nterms = 30
 
     try:
-- 
GitLab