Refactor ApiFixture

- setup number of root devices
- define tested root device

Related-To: NEO-4000

Change-Id: I785d07a7f54932f66fe57637c8d10775743a871c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-12-02 14:19:24 +01:00
committed by sys_ocldev
parent 8ccadbb240
commit 16c6d7eb9b
49 changed files with 266 additions and 273 deletions

View File

@@ -59,7 +59,7 @@ TEST_F(clCreateContextTests, returnsFail) {
TEST_F(clCreateContextTests, invalidDevices) {
cl_device_id devList[2];
devList[0] = devices[0];
devList[0] = devices[testedRootDeviceIndex];
devList[1] = (cl_device_id)ptrGarbage;
auto context = clCreateContext(nullptr, 2, devList, nullptr, nullptr, &retVal);