From 99a8764c3ab9dd80d8d5ac33ed244c0928376a24 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 22 Nov 2010 02:24:25 +0100 Subject: fixed customEventsTest (was: segfault with CL 1.0, now: disabled on CL 1.0) --- test/com/jogamp/opencl/CLCommandQueueTest.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'test/com/jogamp/opencl/CLCommandQueueTest.java') diff --git a/test/com/jogamp/opencl/CLCommandQueueTest.java b/test/com/jogamp/opencl/CLCommandQueueTest.java index d25d5aae..c8acc6df 100644 --- a/test/com/jogamp/opencl/CLCommandQueueTest.java +++ b/test/com/jogamp/opencl/CLCommandQueueTest.java @@ -193,19 +193,12 @@ public class CLCommandQueueTest { } } - final CLContext context = CLContext.create(theChosenOne); - - // we expect an UOE if CL 1.1 is not supported if(!theChosenOne.isAtLeast(CL_1_1)) { - try{ - CLUserEvent.create(context); - fail(""); - }catch(UnsupportedOperationException ex) { - out.println("test dissabled, required CLVersion: "+CL_1_1+" available: "+theChosenOne.getVersion()); - return; - } + out.println("test disabled, required CLVersion: "+CL_1_1+" available: "+theChosenOne.getVersion()); } + final CLContext context = CLContext.create(theChosenOne); + try{ CLDevice device = context.getDevices()[0]; int groupSize = device.getMaxWorkItemSizes()[0]; @@ -269,7 +262,7 @@ public class CLCommandQueueTest { CLPlatform platform = CLPlatform.getDefault(); if(!platform.isAtLeast(CL_1_1)) { - out.println("test dissabled, required CLVersion: "+CL_1_1+" available: "+platform.getVersion()); + out.println("test disabled, required CLVersion: "+CL_1_1+" available: "+platform.getVersion()); return; } -- cgit v1.2.3