From bb4da77f4719ce573610ed69f8e9bed3a3380207 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Tue, 25 Nov 2014 09:03:11 +0100 Subject: [PATCH] mtapi_opencl_c: added result checking in test --- mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc b/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc index 71e6e98..305cec9 100644 --- a/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc +++ b/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc @@ -110,6 +110,10 @@ void TaskTest::TestBasic() { mtapi_task_wait(task, MTAPI_INFINITE, &status); MTAPI_CHECK_STATUS(status); + for (int ii = 0; ii < elements; ii++) { + PT_EXPECT_EQ(results[ii], ii * 2 + 1); + } + mtapi_action_delete(action, MTAPI_INFINITE, &status); MTAPI_CHECK_STATUS(status); -- libgit2 0.26.0