Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153451421
D56304.id175093.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56304.id175093.diff
View Options
diff --git a/usr.bin/stat/tests/stat_test.sh b/usr.bin/stat/tests/stat_test.sh
--- a/usr.bin/stat/tests/stat_test.sh
+++ b/usr.bin/stat/tests/stat_test.sh
@@ -54,6 +54,7 @@
}
h_flag_body()
{
+ file=$(realpath $0)
# POSIX defines a hole as “[a] contiguous region of bytes
# within a file, all having the value of zero” and requires
# that “all seekable files shall have a virtual hole starting
@@ -89,7 +90,7 @@
atf_check truncate -s "$((ps))" foo
atf_check -o inline:"0-$((ps-1)) foo" \
stat -hn foo
- atf_check dd status=none if=/COPYRIGHT of=foo \
+ atf_check dd status=none if="${file}" of=foo \
oseek="$((ps))" bs=1 count=1
atf_check -o inline:"0-$((ps-1)),$((ps+1)) foo" \
stat -hn foo
@@ -98,11 +99,9 @@
stat -hn foo
# Test multiple files.
- atf_check dd status=none if=/COPYRIGHT of=bar
+ atf_check dd status=none if="${file}" of=bar
sz=$(stat -f%z bar)
- atf_check -o inline:"0-$((ps-1)),$((ps*2))-$((ps*3-1)) foo
-$((sz)) bar
-" \
+ atf_check -o inline:"0-$((ps-1)),$((ps*2))-$((ps*3-1)) foo\n$((sz)) bar\n" \
stat -h foo bar
# For a device, fail.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 6:15 AM (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31155857
Default Alt Text
D56304.id175093.diff (1 KB)
Attached To
Mode
D56304: stat: Nits in stat tests
Attached
Detach File
Event Timeline
Log In to Comment