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 1B3B345D6B for ; Thu, 21 Nov 2024 19:25:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3085A43297; Thu, 21 Nov 2024 19:25:08 +0100 (CET) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 2BBCE42FC9 for ; Thu, 21 Nov 2024 19:25:01 +0100 (CET) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-7240fa50694so1136298b3a.1 for ; Thu, 21 Nov 2024 10:25:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1732213500; x=1732818300; 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=l21Pg390V4j6zy88yz6E5exOjrveQVhJKRd99FzrHxg=; b=dDEUjr/LTUnDUJ6EwPh4KDDfiEUqtf5xyAGtOvkad+sW3eiEplsVsavs21ItGESb1h csB2DuHrgH3erE6jtbGFIPlSE5woVd0XZ6qN1p4ZiZrSl+I//wdhB1CJgSyxpBQLNyrM hwXdwR1uCin0HbVG5IY51EaN4tSYTbRgel4Hqv9aRWz33qbL/9ZOjBRvpaG0OIcIXu5d Ew+TIRuT/RGEgcgkqdcwHrvCtfSElG0PZ+vB6OGK4XhVAv0ZgAG8Bl0IjR/uaVEEnEOc oeqxi4ODDV8CdWVrxxWKzGy3TwZnfpX11MqB3nJscIjKlQsnUNHHy+ep+6whldDO44aM 4Rjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732213500; x=1732818300; 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=l21Pg390V4j6zy88yz6E5exOjrveQVhJKRd99FzrHxg=; b=GFVW9AXMP+IixlR8pQNyhx5WOtcEUownyu5PB2wcQ2L8od+IsIO346EwqFrl6SGMlu 5bToNLo+N2cYFw+a2gKg8m2bRP5Hd10knH2Sd4qp3m30kGjHzs30chN7SxXKVUlKumGP NILPrAZwQFzsiIzX8qpLDYl1PIAwQVNof0Ekz4GHt7LoVXmmOnDDS8cNwqfUxcAnt9YC zIzNIrnQzbIxUIYQQhga2kP9iEcDi+NXlOB/4inIBTKkDyLysKwCOj35kGvoQZDolyil s4xCzk8VWpcqzfgA+c2a7e0pmPMPxCI0UE5uh9sy+qxIBH5heh60c3YQ+c/WvvywuO4V Vghw== X-Forwarded-Encrypted: i=1; AJvYcCXifsrMwe9yvNCNJPlkre/DSCwXV+nXlBryBsi5fMPp1GWZ+N2fl2u/TIlnQLnnREfS6PZqiGU=@dpdk.org X-Gm-Message-State: AOJu0YyzLQm8yHSAuBekoIBCWFsJsOw1/VhRvg5oSfM+JqCqan2o/O7m cj1B034rw7sGSE3suLcHZorZE+DFgGbcK4V8bxkWnpo1+7wO0sU253AS1YRQ52Y= X-Gm-Gg: ASbGncs0tQAHZ4qWQFiSEt2B+KuRz+w431/9jQ5BTPKIqigh0j5EHxvYwLl3mdCRvFf He7Nvhsy6AAulV2Yrz7aJf211/JLXsFl6lGh0XbXSlUPhQbwi7UGQEG9/CWNXNxJvpZHPBjBs3Y QBPcbhjzNeuo3g2nLk5j7vCAOCL7FXcoKbPg5/w56IIZraP9jcVlv1MyD8Hox4HGj6+X6lwl4rs k6gSItg4hw0Msah2joXF7gKGTuxAeqIGApVBzLK/abWCLem/ZzvNNlVMccwtO9KtdzZRrirmt3o d3NjeVjIncDpxoRC3Y12enV94HE= X-Google-Smtp-Source: AGHT+IFemYW1D9UlVdceDtbSaH3f1u7721R5SiYWC2mopVqDvL6V3JvMTojRrgFfB01lzSNvwhkAhA== X-Received: by 2002:a05:6a00:2355:b0:71e:52ec:638d with SMTP id d2e1a72fcca58-724beca52d3mr9026182b3a.10.1732213500360; Thu, 21 Nov 2024 10:25:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 10:24:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , msantana@redhat.com, stable@dpdk.org, Bruce Richardson , Tyler Retzlaff , Michael Santana , Aaron Conole , David Marchand Subject: [PATCH v4 7/9] test/eal: fix core check in c flag test Date: Thu, 21 Nov 2024 10:23:28 -0800 Message-ID: <20241121182443.68025-8-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 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 Acked-by: Bruce Richardson --- 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