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>


[ROCm/ROCR-Runtime commit: 1d478f3cf2]
This commit is contained in:
Yong Zhao
2019-02-21 17:42:45 -05:00
parent 658a1d8f41
commit c326949ac7
@@ -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());