diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-05-07 18:45:14 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-05-07 18:45:14 +0000 |
| commit | 2c88636e0e7a0316d5e6d146874bdb2751f75c40 (patch) | |
| tree | fa9cc201fc567231d3edd06fe29c0e987cf678de | |
| parent | e9912b7e88e7d66c0ab5fec1cfe61dcd18377166 (diff) | |
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
| -rwxr-xr-x | usr.bin/stat/tests/stat_test.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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() { |
