Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp813386rdb; Sun, 18 Feb 2024 13:11:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcIOEqWs3gEyQFzvsO33MWuoAXtAGrEVhVKx01B00RV2AOaQaeNoLL5d2FtvRuHIc5NOB2XDLiLGXVF2gjQecIInw3Q5fh+F1RnrAmCQ== X-Google-Smtp-Source: AGHT+IFPfX8JirNBxKRquziC/USIN7W9BTmqnmOh3ZhrOIiwy8FjLbtEvCwbHPVwBC2ABg6+mB6N X-Received: by 2002:a37:c408:0:b0:785:b88a:1437 with SMTP id d8-20020a37c408000000b00785b88a1437mr11263229qki.37.1708290710522; Sun, 18 Feb 2024 13:11:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708290710; cv=pass; d=google.com; s=arc-20160816; b=MqGzvyQkTug/C58QfoKM7uzOfqP6NnkjwYwaqAb5QlU2h/7XUgISOA9HlvLwLiMnUU /4NH+TqvYdLBbfkMfSgGXP5ZE8+kGuW6e+a4K9b7gwuD5SsYAQ4AQ60qrskXDdZf+TV5 4gB2zzBWegvEZyxOMIzdu7e6KxjWuZvjCgwHrcrDIPNHYiA733M7qkcQbSFhhrLj+j/3 i0HFWkcqCPPnt0diPk0FUP9wdue7zhq14py4ti6lDHUKlnD4K345HyBojhjTMoGeNkZO kf/qRjOhgYhGfll/gPmeKwfeC48CM7/uILC8xwJfYO/MBAFW9d2DpSlmSDw+a0EufBRI BUKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=4pmHaf2fugyK/LEmhg/8w9OtEjTfLqWsV9zK4LWH5Yg=; fh=E9+ko7sPlyxPjcJvXPlA8k/l1NtMODP18pGC6Tm/ghk=; b=YpGU4q2UO+413n6HCAZHIUejPGPjOq1Kdq6nrKzzoKLcB8EeAqpAFTa2JSF44htMr6 1gVO5q0r/FlyT1r7PZPMJ1cWomcViVr1fNCyATeWLe74JZNWHg21uPIdhvhsnJ0qXFFc AbKooJldVi0fqpGMHXibZs7Dr/nFZecwxzLIQRXu4C+wq1cP2/zuNu6xqB35pUp9+XEg o3nf/U/5IFU6AJCUAXbtSl3vvyyRpx+GLxQz1ZY5lRI322nIAWO6jlGGA278vLkKbzCR RGTabnSqvm8/tVfuU1MiWb7RXrv7Q0zG3yt2cSTpLQekjTHSrLDqKGe6cu5cMjOJVlLD TWMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-70585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70585-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s7-20020a05620a080700b0078753bb0d36si3790056qks.602.2024.02.18.13.11.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 13:11:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-70585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70585-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 471C21C20CA3 for ; Sun, 18 Feb 2024 21:11:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF6BB7317F; Sun, 18 Feb 2024 21:11:42 +0000 (UTC) Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 000D2335CC for ; Sun, 18 Feb 2024 21:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=163.172.96.212 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708290702; cv=none; b=g2/3cGqEjYOskvNtqcF9YSz7FrYz0LjY0PhaurC4Ocb9SvlTuU+5GHf6WjSv6OHrcT7wyS0k5LRuT8iLxWbimVTBhEARBhRvaoNMSYBDwO7ffjRwdVUdGsRMwuiXbLtpidyp8PIkoCN8/+XL/BldZA3eUVSHMewRiY2GYr1hEvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708290702; c=relaxed/simple; bh=EJJdkkuqi1byswEBPTol8XA3l41lRaC7iCllVoF1exk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=igtR9Q0hd3RlRA4xrtoyQDQOya76g5yHbcBsE8AQPNDvaGuelC1HuGFzZvSKgbCRrCeJSzRvAI+L7elj9o2ctRYM/v0yRQGR/rxejCDyziiGQIZwdQIuN/R3mS3MWbtb0O8s3KfUbWGjjQUNL93jzgfzvwGXZePe8IdUm2EDluk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; arc=none smtp.client-ip=163.172.96.212 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 41ILBVtt005062; Sun, 18 Feb 2024 22:11:31 +0100 Date: Sun, 18 Feb 2024 22:11:31 +0100 From: Willy Tarreau To: Rodrigo Campos Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/4] selftests/nolibc: Add tests for strlcat() and strlcpy() Message-ID: <20240218211131.GA5056@1wt.eu> References: <20240218195110.1386840-1-rodrigo@sdfg.com.ar> <20240218195110.1386840-5-rodrigo@sdfg.com.ar> <2e1378df-ce3d-4f72-bbd6-6ba7654016bc@sdfg.com.ar> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e1378df-ce3d-4f72-bbd6-6ba7654016bc@sdfg.com.ar> User-Agent: Mutt/1.10.1 (2018-07-13) 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. Thanks! Willy