Page MenuHomeFreeBSD

D56293.diff
No OneTemporary

D56293.diff

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

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)

Event Timeline