1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests/cp, tests/test: Don't attempt to set sticky file bit on FreeBSD

On FreeBSD (and OpenBSD), only the superuser can set the file sticky
bit.
This commit is contained in:
Nathan Houghton 2023-10-21 20:22:25 -07:00 committed by Daniel Hofstetter
parent aee1fcade4
commit 0ea1a7cd88
2 changed files with 16 additions and 6 deletions

View file

@ -553,7 +553,7 @@ fn test_nonexistent_file_is_not_symlink() {
}
#[test]
// FixME: freebsd fails with 'chmod: sticky_file: Inappropriate file type or format'
// Only the superuser is allowed to set the sticky bit on files on FreeBSD.
// Windows has no concept of sticky bit
#[cfg(not(any(windows, target_os = "freebsd")))]
fn test_file_is_sticky() {