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
This commit is contained in:
Dag-Erling Smørgrav
2026-05-07 20:45:14 +02:00
parent e9912b7e88
commit 2c88636e0e
+2
View File
@@ -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()
{