Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139437693
D44513.id136262.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
800 B
Referenced Files
None
Subscribers
None
D44513.id136262.diff
View Options
diff --git a/bin/ln/tests/ln_test.sh b/bin/ln/tests/ln_test.sh
--- a/bin/ln/tests/ln_test.sh
+++ b/bin/ln/tests/ln_test.sh
@@ -161,6 +161,22 @@
atf_check_symlink_to A B
}
+atf_test_case sfF_flag
+sfF_flag_head()
+{
+ atf_set "descr" "Verify that if the target file already exists " \
+ "and is a symlink, then '-sfF' option removes " \
+ "it so that the link may occur"
+}
+sfF_flag_body()
+{
+ atf_check mkdir A B C
+ atf_check ln -sF A C
+ atf_check_symlink_to A C
+ atf_check ln -sfF B C
+ atf_check_symlink_to B C
+}
+
atf_test_case s_flag
s_flag_head()
{
@@ -209,6 +225,7 @@
atf_add_test_case snf_flag_dir
atf_add_test_case sF_flag
atf_add_test_case sf_flag
+ atf_add_test_case sfF_flag
atf_add_test_case s_flag
atf_add_test_case s_flag_broken
atf_add_test_case sw_flag
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 13, 2:14 AM (16 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26918426
Default Alt Text
D44513.id136262.diff (800 B)
Attached To
Mode
D44513: ln: Add a test case for ln -sfF.
Attached
Detach File
Event Timeline
Log In to Comment