From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67E4F45D6B for ; Thu, 21 Nov 2024 19:25:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43B0F42FD3; Thu, 21 Nov 2024 19:25:01 +0100 (CET) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id 58DC940A81 for ; Thu, 21 Nov 2024 19:24:56 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-71e79f73aaeso988515b3a.3 for ; Thu, 21 Nov 2024 10:24:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1732213495; x=1732818295; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7DdZaXIun8eKC7Xc1tS/1drNMQCXbn81we0F5N/eFRs=; b=e//fxDdfRiAiCSK7nKFpO3w3WW0pCPlZHGyB7gW07ON0z93CHWuI7hFlJjB7RYBUYo nW2xqDsRhgxCrloUEfDu+tOsRFtMfTCpU0vIf5o+8sv3Z2G14f6Cb0lFiZg9Y0WxfO+F Hvl4QYvGoAqUPkZt5ZBsItVYWNUrnlzKokYYqhjdM5jO/zGGsJ8kKRN5mPO4wuWVqNvs JpaHr7ozzCwIKht7in9vEi+oJVqoFLGUx+6VBbDWZTaJuY8uEEm21icR8XLPNKV4pj/Q TB69lBwquoadwufyYBiB6mZEfX+Esm8cckejTND17zyGnwTP4vrkUsQ/qObalcPHrb6q mENg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732213495; x=1732818295; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7DdZaXIun8eKC7Xc1tS/1drNMQCXbn81we0F5N/eFRs=; b=cMNQYY4gvDju793sUUpi+cJswsxacWYNelqjUUyTS4JtzoGwByt9ijwc0UIShe/HNH K8k88TxJ6icM6jINvzL6BQSLkpvX8sljvcQ8Gcp35Nkgid0ux2WJ5EAtReilal2yeTkx On6rkBje3w5qzSNqy5WDiAT9gC7RGrnX1Rn6fSFefERjRu77O/g4b6jxyeEsjz8fOE+w Xl6tg9iyVI645kofb/41jtEJKdO8OinLHVdyBWfA/rM4sHTChKba9p4tYGKZOd464clE RWpmfAmasXd70IDkDPjh4ozNesUhQ8UVLScsZxX8OnUr4vAap4Ub2KvetXfZ7lQHvd+y oX0Q== X-Forwarded-Encrypted: i=1; AJvYcCVTIQDTHiGo29HYx5HgGJBXhdXHAxjIz/BMVhrdOcvvgrdj8GHEtKO6U379/mV76MAwWR7w+p4=@dpdk.org X-Gm-Message-State: AOJu0YxQloVXvQh2XoLq9iGtLTK6iCkRj6YsBF4XxPKgUusm4hVIJiKF fJba7ZcWMhxVvzThpbw7TOcibvpZFozCBn8QZZH3RUH+xfZx2tH5PHKF8eymLOM= X-Gm-Gg: ASbGncss/4EgCecRLNpx2IKKvGJNr33elSnehxWZnNa/LjSh2cMB8jGAvl7yEsHcl2S eQNi3FmcVkAL7V6NR2Cq6TCG8d8lQDfb2S0TpS6pPN0q9gzP76BrzmwOsk+tD+RtdU+qA1nIWov wHqOcO6XAWk2T10VlLWaV1kKOKP6xbYrOMFPqcsa+7GV138IQ6jzST4wHn80+YvP87lgzNJk5Yt VHM/wnIkjRJ0xFEdolaUKL7EdCFbFrizwrrIRHsOJMv7lMFqJVAFQ1zijEY45+mF2etvGwcUzSJ Htk/P6Lx8Ig6Lf9GEgJ7CjGB0JU= X-Google-Smtp-Source: AGHT+IGKBihf7x62DujbfhOy7BgaNdSJgDhvJdnIOOQN169TsBI4dsWmkp7X5s50K62CxwW/SHnVAg== X-Received: by 2002:a05:6a00:1487:b0:71e:cf8:d6fa with SMTP id d2e1a72fcca58-724becbac09mr9330279b3a.15.1732213495541; Thu, 21 Nov 2024 10:24:55 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724de454aa1sm70201b3a.4.2024.11.21.10.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 10:24:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , declan.doherty@intel.com, stable@dpdk.org, Chas Williams , "Min Hu (Connor)" , Pablo de Lara Subject: [PATCH v4 2/9] app/test: fix typo in address compare Date: Thu, 21 Nov 2024 10:23:23 -0800 Message-ID: <20241121182443.68025-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241121182443.68025-1-stephen@networkplumber.org> References: <20241114001403.147609-1-stephen@networkplumber.org> <20241121182443.68025-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The first argument of 'memcmp' function was equal to the second argument. Therefore ASSERT would always be true. Link: https://pvs-studio.com/en/blog/posts/cpp/1179/ Fixes: 92073ef961ee ("bond: unit tests") Cc: declan.doherty@intel.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- app/test/test_link_bonding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_link_bonding.c b/app/test/test_link_bonding.c index 805613d7dd..b752a5ecbf 100644 --- a/app/test/test_link_bonding.c +++ b/app/test/test_link_bonding.c @@ -792,7 +792,7 @@ test_set_primary_member(void) &read_mac_addr), "Failed to get mac address (port %d)", test_params->bonding_port_id); - TEST_ASSERT_SUCCESS(memcmp(&read_mac_addr, &read_mac_addr, + TEST_ASSERT_SUCCESS(memcmp(expected_mac_addr, &read_mac_addr, sizeof(read_mac_addr)), "bonding port mac address not set to that of primary port\n"); -- 2.45.2