summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-11-19 08:58:10 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-11-19 08:58:10 +1000
commit3d83eca273ae1002061508448eec9c3a4190fed3 (patch)
treeb5e04b1d2c815b898a4b8a9a81683ca0a10f83e2 /tests/auto
parent7e501c6dffd30b5770e886c3dfc6a33c1738093e (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.cpp4
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);
}