improve kernel data parameter ULTs:

- add assert to check size() of patchInfo.dataParameterBuffers
- add test case to ensure that unknown parameter is not added
- move one test case from TEST_P -> TEST_F. no need to be TEST_P as
  GetParam() is not used

Change-Id: I9ff753601ac1d4f2484cf13f5fa6b728b0dcd4a2
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2018-06-29 11:17:46 +02:00
parent ad96adfcef
commit 26ffab8a0c
3 changed files with 27 additions and 2 deletions

View File

@@ -448,6 +448,8 @@ cl_int Program::parsePatchList(KernelInfo &kernelInfo) {
break;
default:
kernelInfo.patchInfo.dataParameterBuffers.pop_back();
DBG_LOG(LogPatchTokens, "\n .Type", "Unhandled", pDataParameterBuffer->Type);
DEBUG_BREAK_IF(true);
}