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:
Yong Zhao
2019-02-21 17:42:45 -05:00
والد 7349276860
کامیت 1d478f3cf2
@@ -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());