//! Fixtures and helpers shared by this module's tests.
use PermissionsExt as _;
use PathBuf;
/// A uid no fixture in this module creates anything as. Only reached on
/// a root test runner, where everything created is root-owned and root is
/// exempt by construction.
pub const FOREIGN_UID: u32 = 65_432;
/// This process's effective uid: what every fixture directory is owned
/// by, and what the cases move the daemon's uid relative to.
pub
/// A log path two components below `dir`, with its parent created and
/// left at `mode`.
pub