Lines Matching +full:g +full:- +full:link

29 # Verifies that the link operation works.
34 atf_set "descr" "Verifies that the link operation works on files" \
41 atf_check -s eq:0 -o empty -e empty touch a
42 atf_check -s eq:0 -o empty -e empty touch z
43 eval $(stat -s a | sed -e 's|st_|sta_|g')
44 eval $(stat -s z | sed -e 's|st_|stz_|g')
47 test ${sta_nlink} -eq 1 || atf_fail "Number of links is incorrect"
48 atf_check -s eq:0 -o empty -e empty ln a b
50 echo "Checking if link count is correct after links are created"
51 eval $(stat -s a | sed -e 's|st_|sta_|g')
52 eval $(stat -s b | sed -e 's|st_|stb_|g')
54 test ${sta_nlink} -eq 2 || atf_fail "Link count is incorrect"
55 test ${stb_nlink} -eq 2 || atf_fail "Link count is incorrect"
57 echo "Checking if link count is correct after links are deleted"
58 atf_check -s eq:0 -o empty -e empty rm a
59 eval $(stat -s b | sed -e 's|st_|stb_|g')
60 test ${stb_nlink} -eq 1 || atf_fail "Link count is incorrect"
61 atf_check -s eq:0 -o empty -e empty rm b
68 atf_set "descr" "Verifies that the link operation works if used" \
75 atf_check -s eq:0 -o empty -e empty touch a
76 atf_check -s eq:0 -o empty -e empty mkdir c
77 atf_check -s eq:0 -o empty -e empty ln a c/b
79 echo "Checking if link count is correct after links are created"
80 eval $(stat -s a | sed -e 's|st_|sta_|g')
81 eval $(stat -s c/b | sed -e 's|st_|stb_|g')
83 test ${sta_nlink} -eq 2 || atf_fail "Link count is incorrect"
84 test ${stb_nlink} -eq 2 || atf_fail "Link count is incorrect"
86 echo "Checking if link count is correct after links are deleted"
87 atf_check -s eq:0 -o empty -e empty rm a
88 eval $(stat -s c/b | sed -e 's|st_|stb_|g')
89 test ${stb_nlink} -eq 1 || atf_fail "Link count is incorrect"
90 atf_check -s eq:0 -o empty -e empty rm c/b
91 atf_check -s eq:0 -o empty -e empty rmdir c
109 atf_set "descr" "Verifies that creating a link raises the correct" \
117 atf_expect_fail "fails with: dir/b did not receive NOTE_LINK - bug 213662"
120 atf_check -s eq:0 -o empty -e empty mkdir dir
121 atf_check -s eq:0 -o empty -e empty touch dir/a
131 atf_check -s eq:0 -o empty -e empty rm dir/b
132 atf_check -s eq:0 -o empty -e empty rmdir dir