From 215901444d8fd98a14f190e6aa10c17b84ee4b7d Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Sat, 24 Oct 2015 19:18:09 -0700 Subject: Fix command queue test for Intel User events start as CL_SUBMITTED instead of CL_QUEUE on Intel. --- test/com/jogamp/opencl/CLCommandQueueTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (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 ef5622a2..d4555c44 100644 --- a/test/com/jogamp/opencl/CLCommandQueueTest.java +++ b/test/com/jogamp/opencl/CLCommandQueueTest.java @@ -347,7 +347,12 @@ public class CLCommandQueueTest extends UITestCase { Thread.sleep(1000); final CLEvent status = events.getEvent(0); - assertEquals(ExecutionStatus.QUEUED, status.getStatus()); + // on Intel, user events start as submitted instead of queued + if(context.getPlatform().isVendorIntel()) + assertEquals(ExecutionStatus.SUBMITTED, status.getStatus()); + else + assertEquals(ExecutionStatus.QUEUED, status.getStatus()); + condition.setComplete(); assertTrue(condition.isComplete()); -- cgit v1.2.3