Skip to content

Commit

Permalink
test/bbdev: assert failed test for queue configure
Browse files Browse the repository at this point in the history
[ upstream commit 1ee659194126e1e4316f68f822c6066216f08798 ]

Stop test if rte_bbdev_queue_configure fails to configure queue.

Fixes: f714a18 ("app/testbbdev: add test application for bbdev")

Signed-off-by: Hernan Vargas <hernan.vargas@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
Hernanlv authored and bluca committed Nov 15, 2023
1 parent f1b0814 commit 4fd0497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/test-bbdev/test_bbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4fd0497

Please sign in to comment.