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 3AA7045CFB; Thu, 14 Nov 2024 01:14:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA17B40BA2; Thu, 14 Nov 2024 01:14:25 +0100 (CET) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mails.dpdk.org (Postfix) with ESMTP id 06ADA4067C for ; Thu, 14 Nov 2024 01:14:22 +0100 (CET) Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-7f12ba78072so5761712a12.2 for ; Wed, 13 Nov 2024 16:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731543261; x=1732148061; 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=BjhBZ3rChvswQdKqQ1Yp/b1oUTXUBGWYq3blI1FHc8Y=; b=gxnc4EKFtzgJYbAwjvosTnDHHS6va28E4dn935rGtecJFvAIE+X9/6aZRPihdukUOM Sa1pd2Tnxs8P+jjuB1CnNPoVjw7lRWqroNWMYqke9R9emqHHOo78Qz4+YgV8rcodhK3C d1pk/7KvXAVpeONk8d84QGxAR/RtZn9rkmH9RiLhnzSx4STV/3h/8Dz7m3HRcHAV0R4i j7kZszw4ONlp5lCR1+QVa8nEQWicrnzIBIT9msVtuCfG208uSZlzzF18L49ISiwvuekR Tv4s1lkSvbQcmXRBZzI17M61ZPfJW5NPshtmleWPB0dvt2GM+uEFwBxWEv//m69kEsN7 twxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731543261; x=1732148061; 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=BjhBZ3rChvswQdKqQ1Yp/b1oUTXUBGWYq3blI1FHc8Y=; b=oIDyB2kp9AAMw7EyTDjfUJgsX95deiz5k0ykGoRBgD+KBLxRHxNj8leoVk0g8cXT1t +03+Za5Q3r8KafBhLk9imBcYxY5wDVsri8V4D3yyCFa9uuqGW8YIHDqfeNr3OIbw12zj /nLbuvq6UFu8MxV7z6JykyskdstvGouLP80nFJKDX5hQCPuywjW6aRSCujgN/AsTlxsI R9gkXcd4NvWg5+pcdn/xrNbiaRqZQYAxt0677Mro4Z6XwjTeyVyjhtag7BWhEdxsR/o+ s27Aj0aCk0o+SzYj/QLSyh+Mnh1zGkkDUAEIL9i0Xr1mLX2Yu7PPcm1XnDg0xELY5Qzh RHAA== X-Gm-Message-State: AOJu0YxU4fjGHuuU64Qw8pjvGIoZNPm5ArRFP8NW3anoq1r5Gs+eL/e5 Yzl03SQkkKgk5zLNV/NbGqqBYEKHp3i+I3oAS5Et0VEUioOa56Yhkit40GQBjZ8vvdblPEoledG G X-Google-Smtp-Source: AGHT+IGwHTn8kQfiAYV835iLjM4jBB1ePWV8yrmoYcD4NXEtRkk5cWlsA1bQmd2xVAGjk3da8ORMAQ== X-Received: by 2002:a05:6a20:c6ce:b0:1db:f642:8d8b with SMTP id adf61e73a8af0-1dc22b9d1e3mr28868310637.45.1731543261264; Wed, 13 Nov 2024 16:14:21 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7246a9a81a9sm9280b3a.99.2024.11.13.16.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 16:14:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , msantana@redhat.com, Tyler Retzlaff , Michael Santana , Aaron Conole , David Marchand Subject: [RFC 06/10] test/eal: fix core check in c flag test Date: Wed, 13 Nov 2024 16:12:18 -0800 Message-ID: <20241114001403.147609-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114001403.147609-1-stephen@networkplumber.org> References: <20241114001403.147609-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 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