Use simmutable instead of uimmutable in the bad_truncate test. The former
is supported by both ZFS and UFS, but the latter only by UFS.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 2173 Build 2182: arc lint + arc unit
Event Timeline
Comment Actions
This adds a requirement that the test be run as root and that securelevel be -1 or 0, which may not be desirable. To prevent compatibility problems, a line
TEST_METADATA.truncate_test+= required_user="root"
should be added to usr.bin/truncate/tests/Makefile.
Alternatively, file permissions (chmod 444) instead of file flags could be used. This requires
TEST_METADATA.truncate_test+= required_user="unprivileged"
and the expected error message should be Permission denied instead of Operation not permitted.