diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-22 11:25:58 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-22 11:25:58 +1000 |
commit | 9abe0d6fcaf825537b4552fb33e1b31baf49147e (patch) | |
tree | 9340bf5009901cd8243829cf0f1291b12df05a39 | |
parent | 0ad06da5443241b9b7128deb30a086292e1c1ee2 (diff) |
Fix unit tests - calling wrong kernel functions.
-rw-r--r-- | tests/auto/qcl/tst_qcl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qcl/tst_qcl.cpp b/tests/auto/qcl/tst_qcl.cpp index 6f887ca..2e8a319 100644 --- a/tests/auto/qcl/tst_qcl.cpp +++ b/tests/auto/qcl/tst_qcl.cpp @@ -294,7 +294,7 @@ void tst_QCL::argumentPassing() QCOMPARE(bufi[0], cl_int(7)); QCLKernel storeUInt = program.createKernel("storeUInt"); - storeInt(buffer, cl_uint(9)); + storeUInt(buffer, cl_uint(9)); buffer.read(&bufui, sizeof(cl_uint)); QCOMPARE(bufui, cl_uint(9)); @@ -319,7 +319,7 @@ void tst_QCL::argumentPassing() QCOMPARE(buf[1], 4.0f); QCLKernel storeVec2i = program.createKernel("storeVec2i"); - storeVec2(buffer, QPoint(6, -7)); + storeVec2i(buffer, QPoint(6, -7)); buffer.read(bufi, sizeof(cl_int) * 2); QCOMPARE(bufi[0], cl_int(6)); QCOMPARE(bufi[1], cl_int(-7)); |