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 4270145D16; Fri, 15 Nov 2024 21:08:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B7B2432E6; Fri, 15 Nov 2024 21:08:14 +0100 (CET) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id 1F33643289 for ; Fri, 15 Nov 2024 21:08:08 +0100 (CET) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-720aa3dbda5so1663822b3a.1 for ; Fri, 15 Nov 2024 12:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731701287; x=1732306087; 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=miTMy/5E6CLRp2PVtb+daoVGzUAMctHZ18BinMT2c/x710TP6jjsr7bomucfnemZQZ UANVTXcpZL+snMzkzX0GLg6BDUahBILeQG+ztUKG6sA2LHgUuIPie1mOT+m0w1PIbNVk cTBKSWkZaKVciAcaVrJSOSMAl/gWUDNU8R2ygUpxVz+Aw9Htcm7capA4Q2Cv95iHnfad nmUezC4nR0nQo/3RvHJg7Lg0bRQeMQmTpPufJ+WnjcUsyrtvWsA/T1iH1ndlUh0Z8Lo3 ObSNcGawGanexboej3aig4l+OFgWFjmGVfVrxpOM4+vn6cMyIVMr1y5EQhyPQ0cWrdet 9VoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731701287; x=1732306087; 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=Sn31BNPxa6lFl3zermOdf22K+3n1Jor2WqD/PF6RxR6gomTvCwSbo/rQZZuOHRXV59 JuoE5Vc4YpN1/ZkAv3zcMhkTuclWQXZtjNkriPZ6DvRYWgHz8X4G53fhQMuNlBk7QheV Yaeqk4QjBDMSmTi+vfBQ4Fn0NINI28lhu8oEFQ9IxWAS3Y2MYiorATjJmQXuUZVtxbp+ jNSZiY6kEmxEDFVHw47ooAENItIS6Kv9D9xt52wSiF3C1phfxiHX5y/MvoUv/wWZkGJi LkrwGjAQbfunT7CHSFa7mpec3zhX9I/ZkjjInKNptVMZnMG8Hdrpi3ORTRoL2WLFUxm7 ao9Q== X-Gm-Message-State: AOJu0Yw1++0bwmXmmEU39AB/z4xJbjCKr+Q5kSLZy6m7LXnUbvgoeY38 fboPzLeRDc3gTbGOvt3bb7/FWZJwpNDBOUtI48ngFjiK/XPPlEjHf3yWg6MrtGeLng5gJ7A83+B m X-Google-Smtp-Source: AGHT+IFAcTAqCvdf1LmapbemMxm4MreFgXZCckxx9k4vqagb/HlOEMIMAp5v0PlZEuLV9QU2Vkq0Ig== X-Received: by 2002:a05:6a00:4fc9:b0:71e:6489:d06 with SMTP id d2e1a72fcca58-72476a0075fmr4385108b3a.0.1731701287366; Fri, 15 Nov 2024 12:08:07 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724771e11f0sm1759686b3a.131.2024.11.15.12.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2024 12:08:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , msantana@redhat.com, stable@dpdk.org, Bruce Richardson , Tyler Retzlaff , David Marchand , Michael Santana , Aaron Conole Subject: [PATCH v3 07/10] test/eal: fix core check in c flag test Date: Fri, 15 Nov 2024 12:06:51 -0800 Message-ID: <20241115200751.17141-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241115200751.17141-1-stephen@networkplumber.org> References: <20241114001403.147609-1-stephen@networkplumber.org> <20241115200751.17141-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 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