From nobody Wed Apr 15 07:53:51 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fwYLR2lx7z6ZT9c for ; Wed, 15 Apr 2026 07:53:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fwYLR1xvMz49Y9 for ; Wed, 15 Apr 2026 07:53:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776239631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gKdyVLNAoDBHdUGyzpKHzd71uB4HATto+UILjANUp3E=; b=fZmC2AVft1Ktud5RT7D4f4l+xdyfzvomcUTaZ1PsBUNDdT8JcS1Jibub+/t/3o2brnkJBy F3wjXY1NzpQcsYIMteGFTqmwoSB9snQ3vsf9ShMcdnrqid4ekxj5x1GqpIT5AXy47kHG+b fWPFt/R/KPVDheXIsNY6fJRUR+Gdjb60WY/LTBC4uaH8SmSvehi4KpCwnAzOGQXBeloQ+k Hnt0+/IJmLpS2g713tuu0B55I4EJwOk7T0UDuy2vvCEx10l+aJE1Nrzk0cgqLZr/2pgb2L 9WsAawbfaCsuxsuHQmhzAmr2z6nr5rqe+1bLf7kDJtCJ41AIPgvNoLLsXKtArw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776239631; a=rsa-sha256; cv=none; b=vw9D0GdRty/OE7obEwBYcvcktMl8SyWj51v7Zm7qgth/O70BFMIQVmTbGeq/PpjYT8B6FC KdzGSM/uUbIflrnw6mprjqgktZBVYc9anQtr4TnWeu/3eeuLCYl31ZJrQ8l9d1XjFT/WmJ VlEGCEwFJoVjmN95+e1nGaf7s6rrn542cHIPG17YMFY0Gntygnb1bn3XHXs3FbmU1uBWQZ RjPl8CLzcIhKYhgVnSOU/4I/1JfgDaa+kZNWw63PqszQHcg7Rhw7ot8xeDsWAOz1s7GWLp pZ9rtEu3XFjvDONFmFxu6FhW9DDbDySFX9bNP8219fUMS6G8KcnKvXIM6iFNrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776239631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gKdyVLNAoDBHdUGyzpKHzd71uB4HATto+UILjANUp3E=; b=BGVQOy/gqJ05uEv2p0Es79LNnowgQKqAC5BpARd55/H6qmWOGVXlA9C4tsgF8eerzMyZlZ FZT8FklRUbngDTCATbNXB6G6vYXigOal+3YPeY+mjHlgRjHXxg/HaII/l0eOh1/doQp3hp u49ZP2PSRJ7L9OppwGQix5LBUQ14A6uFuY54YWvvTSKp3yo/CdHN5nrMqXlOmDh4tfhBv/ 9OlO9QsGxh3lSHKvkbQABvSS7UNPxVNgsuy81Hf6c5iAoIMyVN8GwBiloL/3N2ipBJaro/ uSOJrgoskglHGe73+4eFpRrEVV8g8WjxbFUT0wieq6nT+YlwWcFKJacog0yReg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fwYLR1KClz1QvW for ; Wed, 15 Apr 2026 07:53:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 472e5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 15 Apr 2026 07:53:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: 9d89e57a241d - stable/15 - stat: Nits in readlink tests List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 9d89e57a241d17ee5c09d6899fd5a0bba47ee757 Auto-Submitted: auto-generated Date: Wed, 15 Apr 2026 07:53:51 +0000 Message-Id: <69df440f.472e5.7a25a0f2@gitrepo.freebsd.org> The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=9d89e57a241d17ee5c09d6899fd5a0bba47ee757 commit 9d89e57a241d17ee5c09d6899fd5a0bba47ee757 Author: Dag-Erling Smørgrav AuthorDate: 2026-04-08 11:26:23 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-04-15 07:52:18 +0000 stat: Nits in readlink tests * The f_flag test may fail if a component of the full path to the temporary directory is a symbolic link. * The n_flag test had an empty head; give it a description. * Use consistent quoting. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D56293 (cherry picked from commit 1c793e7cbe2ecded388fd51fb20274891620a6f4) --- usr.bin/stat/tests/readlink_test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/usr.bin/stat/tests/readlink_test.sh b/usr.bin/stat/tests/readlink_test.sh index d0107e0d655e..8eff21fa7a16 100755 --- a/usr.bin/stat/tests/readlink_test.sh +++ b/usr.bin/stat/tests/readlink_test.sh @@ -33,7 +33,7 @@ basic_head() basic_body() { atf_check ln -s foo bar - atf_check -o inline:'foo\n' readlink bar + atf_check -o inline:"foo\n" readlink bar } atf_test_case f_flag @@ -44,6 +44,7 @@ f_flag_head() } f_flag_body() { + cd "$(realpath "$PWD")" atf_check touch A.file atf_check ln -s nonexistent A.link atf_check -o inline:"nonexistent\n" \ @@ -55,13 +56,15 @@ f_flag_body() atf_test_case n_flag n_flag_head() { + atf_set "descr" "Verify that calling readlink with -n will not emit " \ + "a newline character." } n_flag_body() { atf_check ln -s nonexistent.A A atf_check ln -s nonexistent.B B - atf_check -o 'inline:nonexistent.A\nnonexistent.B\n' readlink A B - atf_check -o 'inline:nonexistent.Anonexistent.B' readlink -n A B + atf_check -o inline:"nonexistent.A\nnonexistent.B\n" readlink A B + atf_check -o inline:"nonexistent.Anonexistent.B" readlink -n A B } atf_init_test_cases()