The branch stable/15 has been updated by des:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6a9e0fdf371392a887aacb8a8c401481b47e5a5e

commit 6a9e0fdf371392a887aacb8a8c401481b47e5a5e
Author:     Dag-Erling Smørgrav <[email protected]>
AuthorDate: 2025-10-07 16:23:48 +0000
Commit:     Dag-Erling Smørgrav <[email protected]>
CommitDate: 2025-10-09 12:16:05 +0000

    tarfs: Simplify sameness checks
    
    Sponsored by:   Klara, Inc.
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D52928
    
    (cherry picked from commit 1b0fce2944e3ff570b11de05c6a03977ee5b95e6)
---
 tests/sys/fs/tarfs/tarfs_test.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/sys/fs/tarfs/tarfs_test.sh b/tests/sys/fs/tarfs/tarfs_test.sh
index 20baadfea5c5..d4de71271985 100644
--- a/tests/sys/fs/tarfs/tarfs_test.sh
+++ b/tests/sys/fs/tarfs/tarfs_test.sh
@@ -67,9 +67,9 @@ tarfs_basic_body() {
        mktar "${tarball}"
        atf_check mount -rt tarfs "${tarball}" "${mnt}"
        atf_check -o match:"^${tarball} on ${mnt} \(tarfs," mount
-       atf_check_equal "$(stat -f%d,%i "${mnt}"/sparse_file)" "$(stat -f%d,%i 
"${mnt}"/hard_link)"
-       atf_check_equal "$(stat -f%d,%i "${mnt}"/sparse_file)" "$(stat -L 
-f%d,%i "${mnt}"/short_link)"
-       atf_check_equal "$(stat -f%d,%i "${mnt}"/sparse_file)" "$(stat -L 
-f%d,%i "${mnt}"/long_link)"
+       atf_check test "${mnt}"/sparse_file -ef "${mnt}"/hard_link
+       atf_check test "${mnt}"/sparse_file -ef "${mnt}"/short_link
+       atf_check test "${mnt}"/sparse_file -ef "${mnt}"/long_link
        atf_check -o inline:"${sum}\n" sha256 -q "${mnt}"/sparse_file
        atf_check -o inline:"2,40755\n" stat -f%l,%p "${mnt}"/directory
        atf_check -o inline:"1,100644\n" stat -f%l,%p "${mnt}"/file

Reply via email to