Removed raw pointer incrementation. Changed test against nullptr

Change-Id: Idac94e56d1ff0c86996dda0dc0ebfd8d18d4ecfd
This commit is contained in:
Sebastian Luzynski 2020-03-17 10:35:15 +01:00 committed by sys_ocldev
parent f8500ac3a8
commit 26e9203af8
1 changed files with 2 additions and 3 deletions

View File

@ -494,11 +494,10 @@ HWTEST_F(BcsTests, givenBltSizeWithLeftoverWhenDispatchedThenProgramAllRequiredC
EXPECT_EQ(gpuAddress, miFlushCmd->getDestinationAddress());
EXPECT_EQ(immData, miFlushCmd->getImmediateData());
miFlushCmd++;
cmdIterator++;
miFlushCmd = genCmdCast<MI_FLUSH_DW *>(*(cmdIterator++));
}
EXPECT_NE(nullptr, miFlushCmd);
EXPECT_NE(cmdIterator, cmdList.end());
EXPECT_EQ(MI_FLUSH_DW::POST_SYNC_OPERATION_WRITE_IMMEDIATE_DATA_QWORD, miFlushCmd->getPostSyncOperation());
EXPECT_EQ(csr.getTagAllocation()->getGpuAddress(), miFlushCmd->getDestinationAddress());
EXPECT_EQ(newTaskCount, miFlushCmd->getImmediateData());