Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp820895rdb; Sun, 18 Feb 2024 13:41:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUJacTufPhxfBRWyUdh4GOTXFayEURLezcAIkYwDqCwnHl26tdXBf82PtlDCZUIK4JcGf7iFuiQveqSbiVeQkryn/fsxrhYnm0VZETUAg== X-Google-Smtp-Source: AGHT+IGTXDI4P0M3LyTUqsWzx/YJ2mQs5iH9IVLUDJYOBhhTGC5sgRIdohoVW4Xky5SVeh4F55jE X-Received: by 2002:a05:622a:1820:b0:42c:31cf:d6fd with SMTP id t32-20020a05622a182000b0042c31cfd6fdmr12973819qtc.6.1708292502014; Sun, 18 Feb 2024 13:41:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708292502; cv=pass; d=google.com; s=arc-20160816; b=d3BOvOH0GTkNSr14+5NDsGF6jufRo0aJEmuUGmB5CwAcBSGDIiLxgTkM2WUbeP8wX1 mnRh4LfZXiTIP1wJYcAKpvA8TC/DkxnFWRocashGCsc+XNtXIOYgCd1gZM5ZPQnPl4HL CT2vetygu1jfOYPWN0iMijW9wMVVJblanDxhz66czyfFcC+oX/mrC7AaKtw8DYuS/oVH +feYhEddmWCid9dIamqxpUhYcNGzvNzUmydw6/uE2cGyQsrv+P7M3rQqGtKaQShrUpCp LASLG5g8AKl80T5p4oFfCJVUT6ohUBN3O7cU5LqEs3sc6hBUOqZUlXvYmhqg9HIipapj DiQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=lcrMLwPIRHpqlw2V1pf8/po+k8tQBHFUs37oXzfMYV8=; fh=zjz33CCTaPrY8zWVY2+3Jf+oD43vxBNRVXUPx1CCdyQ=; b=oGgWBOP1Vn8F5HBcUatHWJhA+LfRLdesMJWtXdjMBhJNz+VxMRGLsi16akWXUnDoK3 aEsLIrwvsPSnE6fC01c7xesXkRkXB/W6ePimDZAy5wBN/nW3oxJp+ExNFben7QITWr+R mA/zVY9IsWOSLy1ufr89xmazNxpNqC/UL353cl2lD44ExHANIR7LZMkLFqIz0ztinRys mbnTrOsLOb96zkJ5GXdu0fJfynNe3d4mQut3zfv9p8D6vg3sEi7RrYA1x5VItoYqkpYA fixk2P1M19xwfNPA51snO9qU6Qcox9ThKhtAueYZG7V+Mm1dke1c5Qh/XqVfkH1AwUez d8Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sdfg.com.ar); spf=pass (google.com: domain of linux-kernel+bounces-70593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70593-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j19-20020ac85513000000b0042c71310957si4574724qtq.175.2024.02.18.13.41.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 13:41:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sdfg.com.ar); spf=pass (google.com: domain of linux-kernel+bounces-70593-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70593-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD0051C20916 for ; Sun, 18 Feb 2024 21:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FA0C74297; Sun, 18 Feb 2024 21:41:36 +0000 (UTC) Received: from alerce.blitiri.com.ar (alerce.blitiri.com.ar [49.12.208.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B3D4EAD7 for ; Sun, 18 Feb 2024 21:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=49.12.208.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708292495; cv=none; b=orCe1oQIcc9TkeKYElq/CMJEFiQ/T4f2oVOl83Jj786kDl2pVRZuzGUQwWNk+cwKCd2YxtfAYDD53DGul4d1kXA230zhw43XukEYpo8csPG/ZmSR9UguIrOu1JFjNaanAcO52cVtr9AskIDBmRrTIZtZurjJL9VAECY1073D0Ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708292495; c=relaxed/simple; bh=rYfS4umXbZLyw3B01TnvMyHbj0ts6WaxoocFw8ZCMUg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZFz9KEC+z4k8fTgM6MucV7U7BlSq5+S097ZDO1Ekc55P3VWnCzjwlJo4WCIoJVD1mTyY51ZgTmYA57C2nxsqyNZW9vcV8W2dJ2bql3H7uIjXrXI+5G5hOwF8DM61ZB2bTMcIdvCQhfCEl6wTeutxsVwpN/rzNrTWFiAcOOgwG/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sdfg.com.ar; spf=pass smtp.mailfrom=sdfg.com.ar; arc=none smtp.client-ip=49.12.208.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sdfg.com.ar Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sdfg.com.ar Received: from [192.168.0.26] by sdfg.com.ar (chasquid) with ESMTPSA tls TLS_AES_128_GCM_SHA256 (over submission+TLS, TLS-1.3, envelope from "rodrigo@sdfg.com.ar") ; Sun, 18 Feb 2024 21:41:30 +0000 Message-ID: Date: Sun, 18 Feb 2024 18:41:25 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 4/4] selftests/nolibc: Add tests for strlcat() and strlcpy() Content-Language: en-US To: Willy Tarreau Cc: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org References: <20240218195110.1386840-1-rodrigo@sdfg.com.ar> <20240218195110.1386840-5-rodrigo@sdfg.com.ar> <2e1378df-ce3d-4f72-bbd6-6ba7654016bc@sdfg.com.ar> <20240218211131.GA5056@1wt.eu> From: Rodrigo Campos In-Reply-To: <20240218211131.GA5056@1wt.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/18/24 18:11, Willy Tarreau wrote: > On Sun, Feb 18, 2024 at 05:39:03PM -0300, Rodrigo Campos wrote: >> On 2/18/24 16:51, Rodrigo Campos wrote: >>> diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c >>> index 6ba4f8275ac4..d373fc14706c 100644 >>> --- a/tools/testing/selftests/nolibc/nolibc-test.c >>> +++ b/tools/testing/selftests/nolibc/nolibc-test.c >>> @@ -600,6 +600,25 @@ int expect_strne(const char *expr, int llen, const char *cmp) >>> /* declare tests based on line numbers. There must be exactly one test per line. */ >>> #define CASE_TEST(name) \ >>> @@ -991,6 +1010,14 @@ int run_stdlib(int min, int max) >>> for (test = min; test >= 0 && test <= max; test++) { >>> int llen = 0; /* line length */ >>> + /* For functions that take a long buffer, like strlcat() >> >> Ouch, I didn't leave a "/*\n" for this comment :( > > No worries, if you want I'll address it myself, just let me know, no > need to respin a series for this. Please do, thanks! :) Best, Rodrigo