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 DC97945CC3; Thu, 14 Nov 2024 20:27:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA80E42F37; Thu, 14 Nov 2024 20:26:28 +0100 (CET) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 01DBF42F00 for ; Thu, 14 Nov 2024 20:26:23 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-72467c35ddeso907735b3a.0 for ; Thu, 14 Nov 2024 11:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731612382; x=1732217182; 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=VH5+k7mAscWoV1VTqLDYfKwg9zcFH7gaVr0Eg6qKcMA=; b=ZifHLOTfEWqjREGJxQWHV4xQ4cmQ4C+F7YrCBQrXWL8UJNbFuyrAftNJ5hpWVco9Ss P7QoXVuqVRtPqDjAkPkh1PNmNsbqIi0dkB0lGOYbhlnv7ikfURwpbRMDnJtxSW+zKOHL rJg7uzodi2Qko4pGn45HjkqlTQ02p2LxJfHPGKMUf/Ku4ibJ8jF2ZoD5xVhWVhia0mkA +Pacob7rAbIXtN55ijyPNgUAz8x/EUY6mrcn7CBB+yjm0kv/y2q9rU9YVFKP19SHC3k8 J8eBZaqcJZkW7ZqnTRIB2bJDNnljxjS+j+NgaGLG7sDaMKyvfoAeFc7gKGxShLyRYe0o dP5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731612382; x=1732217182; 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=VH5+k7mAscWoV1VTqLDYfKwg9zcFH7gaVr0Eg6qKcMA=; b=vN3Qmz71jLA9O4QQkS0a7b5W/jwhFznDXEqrqq1Z2h+DMxPzZfvHkwHWSkhYAIUelH 00a8naNJfXlEio9XPCa6xFMyp1UGGs8GS6vSuMC0TEt+HDyU69sVQY8MC2TtLpqUzTM5 4HUs9aE2j4pq0GY2sVib46CGTTST1UhEEVGzoxLvsCUSUvsptzg31j+QtWUxgnhm7LvC gTmxqoGpNLlv5lqu0wueH8JagaD+kb4LuvT15prJRLFNKN0f+sw8yLXWLern6+OB3+19 hSugAbIqgqjZaxzXvC6rAd6txyR34W1v6cYphx5qCt8/fhf9vvD6ss2e/fsxou+6+DBT mrlA== X-Gm-Message-State: AOJu0YwJBntqyWLiq14EchgqYnN2kXe5DU4ExWWZLW59S/iROyk4OnMy 5406DuCX8em5ljW3wcQ804hkiD44A/yUpOv+57PxlVT+9pmmQhz9rLQKbKfdK2/vbCURwzg/MPK UD9U= X-Google-Smtp-Source: AGHT+IFIhkTyYEPWfDUfXXexvsLtEmlrzbAWzwVySJHZiyYFU2mBE0N9MGitx7ZyCfj0ygcUa4JPLw== X-Received: by 2002:a05:6a00:1144:b0:724:6c79:2787 with SMTP id d2e1a72fcca58-7246c79283amr4309768b3a.8.1731612382018; Thu, 14 Nov 2024 11:26:22 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7f8b37f3466sm1461632a12.35.2024.11.14.11.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 11:26:21 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , msantana@redhat.com, stable@dpdk.org, Tyler Retzlaff , Michael Santana , David Marchand , Aaron Conole Subject: [PATCH v2 07/10] test/eal: fix core check in c flag test Date: Thu, 14 Nov 2024 11:25:05 -0800 Message-ID: <20241114192603.41145-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114192603.41145-1-stephen@networkplumber.org> References: <20241114001403.147609-1-stephen@networkplumber.org> <20241114192603.41145-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The expression for checking which lcore is enabled for 0-7 was wrong (missing case for 6). Link: https://pvs-studio.com/en/blog/posts/cpp/1179/ Fixes: b0209034f2bb ("test/eal: check number of cores before running subtests") Cc: msantana@redhat.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- app/test/test_eal_flags.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index d37d6b8627..e32f83d3c8 100644 --- a/app/test/test_eal_flags.c +++ b/app/test/test_eal_flags.c @@ -677,8 +677,8 @@ test_missing_c_flag(void) if (rte_lcore_is_enabled(0) && rte_lcore_is_enabled(1) && rte_lcore_is_enabled(2) && rte_lcore_is_enabled(3) && - rte_lcore_is_enabled(3) && rte_lcore_is_enabled(5) && - rte_lcore_is_enabled(4) && rte_lcore_is_enabled(7) && + rte_lcore_is_enabled(4) && rte_lcore_is_enabled(5) && + rte_lcore_is_enabled(6) && rte_lcore_is_enabled(7) && launch_proc(argv29) != 0) { printf("Error - " "process did not run ok with valid corelist value\n"); -- 2.45.2