git: 2c88636e0e7a - main - stat: Expand devname test case
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 May 2026 18:45:58 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=2c88636e0e7a0316d5e6d146874bdb2751f75c40
commit 2c88636e0e7a0316d5e6d146874bdb2751f75c40
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-05-07 18:45:14 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-05-07 18:45:14 +0000
stat: Expand devname test case
Test what happens when we ask for the rdev of a non-device.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D56838
---
usr.bin/stat/tests/stat_test.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr.bin/stat/tests/stat_test.sh b/usr.bin/stat/tests/stat_test.sh
index 282efc91303f..aa8563c62ccc 100755
--- a/usr.bin/stat/tests/stat_test.sh
+++ b/usr.bin/stat/tests/stat_test.sh
@@ -26,6 +26,7 @@
#
: ${CHKPATH:="mnt"}
+: ${NODEV:="#NODEV"}
atf_test_case F_flag
F_flag_head()
@@ -323,6 +324,7 @@ devname_body()
atf_check -o inline:"$devname\n" stat -f '%Sd' "$CHKPATH"
atf_check -o inline:"$devname\n" stat -f '%Sr' "$devpath"
+ atf_check -o inline:"$NODEV\n" stat -f '%Sr' "$CHKPATH"
}
devname_cleanup()
{