From nobody Wed Apr 8 11:26:31 2026 X-Original-To: dev-commits-src-main@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 4frLP91Nc7z6Xxcj for ; Wed, 08 Apr 2026 11:26:37 +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 4frLP90pMwz3KrJ for ; Wed, 08 Apr 2026 11:26:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775647597; 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=7E1sf5icffjWTU65ezQmlotVaBEDJj726iGR9BNpbaY=; b=TgBO1PVAuSlsWyipgTF18yhYIBIKeMeGygDu4ZTM5XTUVvWKX7RAtWoes3HNsGtRVxQ+iz 97B8S5zvALRmcyUUmX8WKg/k+pCeX9Q3wmI24Y8rzt2UDtEmEm7/PyDJmpHtzpl5voFvQJ F+VOK5v0CdWLxgIMRd6//rTwh2chg9mZ0eU99ynr9LbASZw1PjKfZ36GgaKu4ytmBL8PsZ ywrIj+n94SED2sYsICxjtuN/Jr2UqYwJ+T+i0nH2v3ivcX5N2zGP4Y9hHt8djwPOpcTUrJ cr80Y9zYH5xSupnO0awYSRHYOFhJFJJLcA7Kezj9jydTEO9KQvenhH0poUnqBg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775647597; a=rsa-sha256; cv=none; b=yjcef+uUSB45moDz3ot3+KU2d5SybxNF1WFBqLZXwlBCQIrfkKNaJnMS7G9NdJhLh/bg4t enUPqSvBXIcFYWClO2PxicOleO96mvmOy8iZNyxbVVIxAQOt94BJVHoeyWIjOzOA3Wu1n2 Y2kAbH2fPC7nXRkerGoaAhJERtMDBTNiovzQKKjCP8PQhtkhkE5GjEqgDwwP6VUqTR+J4u ghrWWE6EmedjePppXeTixajg8yuXQ/zH/V9+qkqdiLsSJTskhiOkW4OubgoOKhCDWuCxqz u7+CxTnhM7wSKmF7x3Z+CbALDQFFLOmN0iXgA8HKWPs1OYtFjJTKc3CFPthJXg== 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=1775647597; 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=7E1sf5icffjWTU65ezQmlotVaBEDJj726iGR9BNpbaY=; b=gD4dQPDK1xyTzFYnuJsfsVKH8RgMtr1zuBsVjA9BN0swh95tLN8zv204TRoaldXGPWHaRo cKEtHiJkGJyow+O2mr4ggzbmWKugqiw1SW4UVSYGL3yfB4hluIDiRjOMsFmNo9IJxhKg4a rRgBb1EZIgDulbLsKkJoWahm3etnMYhhiP5ZbJkcyRsHS5YOYwVNMIGjqBUywflpsYuexX ei+01pIpkTpFe//LmV0RFk4a5pnvJxXIlfIz//+dA5Zp/tp73xJ9JMKnITx26zxyi/DdOO ErCHDShnJH6GhxI0NnvXK2Wky9ZPmBhj+CtQuBDiW18edNs/G3yAZLrm9FEcPQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4frLP90Ppsz8bD for ; Wed, 08 Apr 2026 11:26:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 21ec5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 08 Apr 2026 11:26:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: 1c793e7cbe2e - main - stat: Nits in readlink tests List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 1c793e7cbe2ecded388fd51fb20274891620a6f4 Auto-Submitted: auto-generated Date: Wed, 08 Apr 2026 11:26:31 +0000 Message-Id: <69d63b67.21ec5.286646d4@gitrepo.freebsd.org> The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=1c793e7cbe2ecded388fd51fb20274891620a6f4 commit 1c793e7cbe2ecded388fd51fb20274891620a6f4 Author: Dag-Erling Smørgrav AuthorDate: 2026-04-08 11:26:23 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-04-08 11:26:23 +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 --- 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()