From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhiyong Yang Subject: [PATCH] test: fix wrong assignment operation Date: Fri, 15 Sep 2017 10:35:57 +0800 Message-ID: <20170915023557.35681-1-zhiyong.yang@intel.com> Cc: declan.doherty@intel.com, ferruh.yigit@intel.com, Zhiyong Yang To: dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D6D7D2935 for ; Fri, 15 Sep 2017 04:36:02 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" It should be an comparation operation rather than an assignment operation. Fixes: 5e41ab250dfa("app/test: unit tests for bonding mode 4") Signed-off-by: Zhiyong Yang --- test/test/test_link_bonding_mode4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_link_bonding_mode4.c b/test/test/test_link_bonding_mode4.c index 8e9e23db5..e246f0148 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) -- 2.13.3