mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Removed raw pointer incrementation. Changed test against nullptr
Change-Id: Idac94e56d1ff0c86996dda0dc0ebfd8d18d4ecfd
This commit is contained in:

committed by
sys_ocldev

parent
f8500ac3a8
commit
26e9203af8
@ -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());
|
||||
|
Reference in New Issue
Block a user