summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2017-07-31 21:42:18 +0000
committerasomers <asomers@FreeBSD.org>2017-07-31 21:42:18 +0000
commit06f3868171d1fa4db48435c2ad7f4977f29fe6b7 (patch)
treec32fb2a5941f21c986edc732529a379bc98ec473 /bin
parenteef645d470b5b1b408f2d09c068393d113d18cc9 (diff)
downloadFreeBSD-src-06f3868171d1fa4db48435c2ad7f4977f29fe6b7.zip
FreeBSD-src-06f3868171d1fa4db48435c2ad7f4977f29fe6b7.tar.gz
MFC r319854:
bin/ln: Set umask appropriately before creating files for testing These changes were missed in D11084 Submitted by: shivansh Reviewed by: asomers X-MFC-With: 319714 Sponsored by: Google, Inc (GSoC 2017) Differential Revision: https://reviews.freebsd.org/D11158
Diffstat (limited to 'bin')
-rw-r--r--bin/ln/tests/ln_test.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ln/tests/ln_test.sh b/bin/ln/tests/ln_test.sh
index ad731f3..f546275 100644
--- a/bin/ln/tests/ln_test.sh
+++ b/bin/ln/tests/ln_test.sh
@@ -98,6 +98,7 @@ target_exists_hard_head()
target_exists_hard_body()
{
+ set_umask
atf_check touch A B
atf_check -s exit:1 -e inline:'ln: B: File exists\n' \
ln A B
@@ -112,6 +113,7 @@ target_exists_symbolic_head()
target_exists_symbolic_body()
{
+ set_umask
atf_check touch A B
atf_check -s exit:1 -e inline:'ln: B: File exists\n' \
ln -s A B
@@ -171,6 +173,7 @@ sf_flag_head()
sf_flag_body()
{
+ set_umask
atf_check touch A B
atf_check ln -sf A B
atf_check -o inline:'B: symbolic link to A\n' file B
OpenPOWER on IntegriCloud