diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-11-19 08:58:10 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-11-19 08:58:10 +1000 |
commit | 3d83eca273ae1002061508448eec9c3a4190fed3 (patch) | |
tree | b5e04b1d2c815b898a4b8a9a81683ca0a10f83e2 /tests/auto | |
parent | 7e501c6dffd30b5770e886c3dfc6a33c1738093e (diff) |
Small fix to tst_QCL::device() test case
CPU and GPU are flags, not values, so the == test couldn't
handle a device that was listed as "Default CPU".
Diffstat (limited to 'tests/auto')
-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 07d8a02..15701a3 100644 --- a/tests/auto/qcl/tst_qcl.cpp +++ b/tests/auto/qcl/tst_qcl.cpp @@ -248,9 +248,9 @@ void tst_QCL::device() } // Split the devices based on type. - if (device2.deviceType() == QCLDevice::GPU) + if ((device2.deviceType() & QCLDevice::GPU) != 0) gpus.append(device2); - else if (device2.deviceType() == QCLDevice::CPU) + if ((device2.deviceType() & QCLDevice::CPU) != 0) cpus.append(device2); } |