Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152133006
D56293.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
D56293.diff
View Options
diff --git a/usr.bin/stat/tests/readlink_test.sh b/usr.bin/stat/tests/readlink_test.sh
--- a/usr.bin/stat/tests/readlink_test.sh
+++ b/usr.bin/stat/tests/readlink_test.sh
@@ -33,7 +33,7 @@
basic_body()
{
atf_check ln -s foo bar
- atf_check -o inline:'foo\n' readlink bar
+ atf_check -o inline:"foo\n" readlink bar
}
atf_test_case f_flag
@@ -44,6 +44,7 @@
}
f_flag_body()
{
+ cd "$(realpath "$PWD")"
atf_check touch A.file
atf_check ln -s nonexistent A.link
atf_check -o inline:"nonexistent\n" \
@@ -55,13 +56,15 @@
atf_test_case n_flag
n_flag_head()
{
+ atf_set "descr" "Verify that calling readlink with -n will not emit " \
+ "a newline character."
}
n_flag_body()
{
atf_check ln -s nonexistent.A A
atf_check ln -s nonexistent.B B
- atf_check -o 'inline:nonexistent.A\nnonexistent.B\n' readlink A B
- atf_check -o 'inline:nonexistent.Anonexistent.B' readlink -n A B
+ atf_check -o inline:"nonexistent.A\nnonexistent.B\n" readlink A B
+ atf_check -o inline:"nonexistent.Anonexistent.B" readlink -n A B
}
atf_init_test_cases()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 11:24 PM (6 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31109247
Default Alt Text
D56293.diff (1 KB)
Attached To
Mode
D56293: stat: Nits in readlink tests
Attached
Detach File
Event Timeline
Log In to Comment