Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp803767rdb; Sun, 18 Feb 2024 12:39:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXMYbeDjyyH1g26AZM3PXAan/b4tSLKYBqK6RyTuOgesAcjqrhDRCvHJpTXVteV3902NCzSKnbKkRDckJrdczsgtfK6H3zlqNLCCSxThA== X-Google-Smtp-Source: AGHT+IFN0hCVw9Jw2w53pb/sRD9N8XVXY+YVbO2jJxXHTBIdwGse28D80e7gLdbf38fbz/51daqQ X-Received: by 2002:a17:906:4f15:b0:a3e:6eee:efe0 with SMTP id t21-20020a1709064f1500b00a3e6eeeefe0mr1433806eju.76.1708288759159; Sun, 18 Feb 2024 12:39:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708288759; cv=pass; d=google.com; s=arc-20160816; b=RLmYZVv86s8nD+2DLg1uW7Ses8+vTID+dg7HrwfniDERn7yrwC5K2Cf00Feiwnpa8z OP/bnWRyoNslG8pwdhoChLbk1YXowBunZfyoiKBXRCOgeayrui0ch9C8IJ4BPad/+OlG ZgXoDJhVQQO4t+mZyIYQgEqVVhuCl7/xbcsNqw8xBaKRO5glneZ/EC14qYnRibpMzMBN +o8qVkfJabj5onNbK8WpWBe32WcTDh0VmXsO0iMuCn6pC4mEjyXpKJhc9m0UA0qLbyBf Rf+Ch1fTaoXVn5GcpHiV8uB0W77IX7u2jXsv6uY+aNTGHdt7od5Ldj272rvLAAhB66jg M8ww== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=QD8ePg7kqiXmhgQ76cSxTdSnr8/eH4Bsw30C3ubYSQg=; fh=igtWDmm60P5rm81CKcMwLcCma6JXLc26aqGGkyUd5f4=; b=vwoZ3QYlDs4Tiu+J/84nXo3lgrnRVgPhx8N+7j0lb0iPmtRxgizYbPBDkw3u4Bpt6S 4tXRaQ3Z0xfXBctFhKhDudrt1Un+zhwkg6V3TbjGoVqZN1vIGUEkFz8Kbu8p2GXCkt4V jm509vDC9ZJrOuFy7wsEqKTYu3X7395LOaEWd4zOPq0V2IHEs5kDyDp/aSfyM2suMRb+ cNAJY9rI4XDjmGbvzsTZVCJFZ6X8j9XsvrIG4Hmsjj6+jSLUzfKLOSoAwDAI8GyD7yEe 5m9JlxsGjutUMysqnK3JftliMZBvveLtVcpcYMSN1F9FD7kvTd9Z55cKwHhDKw10akvY a/CA==; 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-70573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70573-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gn22-20020a1709070d1600b00a3e5b6ecd69si896521ejc.70.2024.02.18.12.39.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 12:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sdfg.com.ar); spf=pass (google.com: domain of linux-kernel+bounces-70573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70573-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D9B7A1F2158B for ; Sun, 18 Feb 2024 20:39:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C03473165; Sun, 18 Feb 2024 20:39:12 +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 19ECF1DFC6 for ; Sun, 18 Feb 2024 20:39:08 +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=1708288751; cv=none; b=C3+QnBn6kAmLz5ghWXkqGp2Ze4i/trU7tYiI4qJkukKrBKuTbudtvPErF0mG8b46vIk/2Px8QqkRddeny2IY3gA71VTzaieXl4RqPEwPk/hi2FXUg3Kh54W+S0wpMAQZaXYi+KuLotNTWbWET+NBJTAmjnFW+JAe9WVG4+eJIbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708288751; c=relaxed/simple; bh=VvejCok1XJgX6s1aspcyZ9RXtz3XF6WUnKD755KRKhg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aGIdIFPHixga1BR2yjUwKtzSrM08PFrD7vxB9HIu0fqE20HXxbM8R40MdX0Ezx6rx2K+rp8Abf0yQOqcDYc6iZ/eR+5Ol9/tZ6Jw0A6vE/ko4SGURFTN412cPr2rEuXocM92b+bgSOBFBMZyMnnCA63Sx7jrM3MvX8QJ9iadTd0= 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 20:39:06 +0000 Message-ID: <2e1378df-ce3d-4f72-bbd6-6ba7654016bc@sdfg.com.ar> Date: Sun, 18 Feb 2024 17:39:03 -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() To: Willy Tarreau , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= Cc: linux-kernel@vger.kernel.org References: <20240218195110.1386840-1-rodrigo@sdfg.com.ar> <20240218195110.1386840-5-rodrigo@sdfg.com.ar> Content-Language: en-US From: Rodrigo Campos In-Reply-To: <20240218195110.1386840-5-rodrigo@sdfg.com.ar> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 :(