mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Simplify peekIsSubmitted.
Change-Id: I7947afc01ee9cb3a35e35530bd7d8c6b13f4d277 Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
8fca10095e
commit
d68f4e2591
@ -1195,16 +1195,10 @@ TEST_F(InternalsEventWithPerfCountersTest, SetPerfCounter_AvailFalse) {
|
||||
delete pCmdQ;
|
||||
}
|
||||
|
||||
TEST_F(EventTest, GivenNullptrWhenpeekIsSubmittedThenFalse) {
|
||||
Event ev(this->pCmdQ, CL_COMMAND_COPY_BUFFER, 3, 0);
|
||||
bool executionStatus = ev.peekIsSubmitted(nullptr);
|
||||
EXPECT_NE(true, executionStatus);
|
||||
}
|
||||
|
||||
TEST_F(EventTest, GivenCL_SUBMITTEDWhenpeekIsSubmittedThenTrue) {
|
||||
Event ev(this->pCmdQ, CL_COMMAND_COPY_BUFFER, 3, 0);
|
||||
int32_t executionStatusSnapshot = CL_SUBMITTED;
|
||||
bool executionStatus = ev.peekIsSubmitted(&executionStatusSnapshot);
|
||||
bool executionStatus = ev.peekIsSubmitted(executionStatusSnapshot);
|
||||
EXPECT_EQ(true, executionStatus);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user