From c326949ac74f52ef8eb3a16b17ddb803ee6c6011 Mon Sep 17 00:00:00 2001 From: Yong Zhao Date: Thu, 21 Feb 2019 17:42:45 -0500 Subject: [PATCH] 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 [ROCm/ROCR-Runtime commit: 1d478f3cf256650d54458889690b759955b25802] --- projects/rocr-runtime/tests/kfdtest/src/KFDQMTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDQMTest.cpp b/projects/rocr-runtime/tests/kfdtest/src/KFDQMTest.cpp index d4f02b2911..89291c3b5a 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDQMTest.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDQMTest.cpp @@ -73,7 +73,7 @@ TEST_F(KFDQMTest, CreateCpQueue) { queue.Wait4PacketConsumption(); - WaitOnValue(destBuf.As(), 0); + EXPECT_TRUE(WaitOnValue(destBuf.As(), 0)); EXPECT_SUCCESS(queue.Destroy());