[3/3] app/test: fix checking return value
Checks
Commit Message
From: Long Wu <long.wu@corigine.com>
CI found the function without checking return value in this place.
Coverity issue: 403101
Fixes: 92073ef961ee ("bond: unit tests")
Cc: declan.doherty@intel.com
Cc: stable@dpdk.org
Signed-off-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
---
app/test/test_link_bonding.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On 10/10/2023 7:23 AM, Chaoyong He wrote:
> From: Long Wu <long.wu@corigine.com>
>
> CI found the function without checking return value in this place.
>
> Coverity issue: 403101
> Fixes: 92073ef961ee ("bond: unit tests")
> Cc: stable@dpdk.org
>
> Signed-off-by: Long Wu <long.wu@corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
> Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
>
Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
Applied to dpdk-next-net/main, thanks.
@@ -449,7 +449,8 @@ test_add_already_bonding_member_to_bonding_device(void)
uint16_t members[RTE_MAX_ETHPORTS];
char pmd_name[RTE_ETH_NAME_MAX_LEN];
- test_add_member_to_bonding_device();
+ TEST_ASSERT_SUCCESS(test_add_member_to_bonding_device(),
+ "Failed to add member to bonding device");
current_member_count = rte_eth_bond_members_get(test_params->bonding_port_id,
members, RTE_MAX_ETHPORTS);