From: Zhiyong Yang Date: Fri, 15 Sep 2017 02:35:57 +0000 (+0800) Subject: test: fix assignment operation X-Git-Tag: spdx-start~1949 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e19e163d27dfc342bf58e49c605fededa6cfc6fb;p=dpdk.git test: fix assignment operation This should be an comparison operation rather than an assignment operation. Fixes: 5e41ab250dfa ("app/test: unit tests for bonding mode 4") Cc: stable@dpdk.org Signed-off-by: Zhiyong Yang Reviewed-by: Ferruh Yigit --- diff --git a/test/test/test_link_bonding_mode4.c b/test/test/test_link_bonding_mode4.c index 8e9e23db51..e246f01483 100644 --- a/test/test/test_link_bonding_mode4.c +++ b/test/test/test_link_bonding_mode4.c @@ -661,7 +661,7 @@ bond_handshake(void) TEST_ASSERT_EQUAL(all_slaves_done, 1, "Bond handshake failed\n"); /* If flags doesn't match - report failure */ - return all_slaves_done = 1 ? TEST_SUCCESS : TEST_FAILED; + return all_slaves_done == 1 ? TEST_SUCCESS : TEST_FAILED; } #define TEST_LACP_SLAVE_COUT RTE_DIM(test_params.slave_ports)