kfdtest: Add a result check in CreateCpQueue test
With the orginal code, CreateCpQueue will report failure if WaitOnValue return false. Add EXPECT_TRUE() so that in that case the failure is reported. Change-Id: I043d013958b452d7ccb9538dc296d99d024abf01 Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
This commit is contained in:
@@ -73,7 +73,7 @@ TEST_F(KFDQMTest, CreateCpQueue) {
|
||||
|
||||
queue.Wait4PacketConsumption();
|
||||
|
||||
WaitOnValue(destBuf.As<unsigned int*>(), 0);
|
||||
EXPECT_TRUE(WaitOnValue(destBuf.As<unsigned int*>(), 0));
|
||||
|
||||
EXPECT_SUCCESS(queue.Destroy());
|
||||
|
||||
|
||||
مرجع در شماره جدید
Block a user