diff options
| author | Enji Cooper <ngie@FreeBSD.org> | 2017-08-02 22:28:12 +0000 |
|---|---|---|
| committer | Enji Cooper <ngie@FreeBSD.org> | 2017-08-02 22:28:12 +0000 |
| commit | 86cc58dc966310b6711bb3012e29ead9fd5a4bc6 (patch) | |
| tree | e90f4975276d5729a06bd0d0fe94c3bbc04ef452 /bin/chmod | |
| parent | 47606b869eb149ebb7135d6594c3b9b9f05b9aed (diff) | |
| parent | 3cf56bb43a4645c786bfc8d76cca54b44289fd0a (diff) | |
Notes
Diffstat (limited to 'bin/chmod')
| -rwxr-xr-x | bin/chmod/tests/chmod_test.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/chmod/tests/chmod_test.sh b/bin/chmod/tests/chmod_test.sh index 4a6a6a3d21ef..0ac438d3c5a6 100755 --- a/bin/chmod/tests/chmod_test.sh +++ b/bin/chmod/tests/chmod_test.sh @@ -25,6 +25,13 @@ # # $FreeBSD$ +get_filesystem() +{ + local mountpoint=$1 + + df -T $mountpoint | tail -n 1 | cut -wf 2 +} + atf_test_case RH_flag RH_flag_head() { @@ -94,6 +101,11 @@ f_flag_body() { atf_check truncate -s 0 foo bar atf_check chmod 0750 foo bar + case "$(get_filesystem .)" in + zfs) + atf_expect_fail "ZFS doesn't support UF_IMMUTABLE; returns EPERM - bug 221189" + ;; + esac atf_check chflags uchg foo atf_check -e not-empty -s not-exit:0 chmod 0700 foo bar atf_check -o inline:'100750\n100700\n' stat -f '%p' foo bar @@ -140,6 +152,11 @@ v_flag_body() atf_check truncate -s 0 foo bar atf_check chmod 0600 foo atf_check chmod 0750 bar + case "$(get_filesystem .)" in + zfs) + atf_expect_fail "ZFS updates mode for foo unnecessarily - bug 221188" + ;; + esac atf_check -o 'inline:bar\n' chmod -v 0600 foo bar atf_check chmod -v 0600 foo bar for f in foo bar; do |
