#[test] fn lock_file_created_and_prevents_second_acquisition() { let dir = tempfile::tempdir().unwrap(); let lock_path = dir.path().join("ahfail.lock"); let acquired = ahfail_ui::volume::try_acquire_lock(&lock_path); assert!(acquired); assert!(lock_path.exists()); let acquired2 = ahfail_ui::volume::try_acquire_lock(&lock_path); assert!(!acquired2); }