From: Hernan Vargas <hernan.var...@intel.com>

Stop test if rte_bbdev_queue_configure fails to configure queue.

Fixes: f714a18885a6 ("app/testbbdev: add test application for bbdev")
Cc: sta...@dpdk.org

Signed-off-by: Hernan Vargas <hernan.var...@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>
---
 app/test-bbdev/test_bbdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/test-bbdev/test_bbdev.c b/app/test-bbdev/test_bbdev.c
index 65805977ae..cf224dca5d 100644
--- a/app/test-bbdev/test_bbdev.c
+++ b/app/test-bbdev/test_bbdev.c
@@ -366,7 +366,8 @@ test_bbdev_configure_stop_queue(void)
         * - queue should be started if deferred_start ==
         */
        ts_params->qconf.deferred_start = 0;
-       rte_bbdev_queue_configure(dev_id, queue_id, &ts_params->qconf);
+       TEST_ASSERT_SUCCESS(rte_bbdev_queue_configure(dev_id, queue_id, 
&ts_params->qconf),
+                       "Failed test for rte_bbdev_queue_configure");
        rte_bbdev_start(dev_id);
 
        TEST_ASSERT_SUCCESS(return_value = rte_bbdev_queue_info_get(dev_id,
-- 
2.34.1

Reply via email to