Skip to content

Commit 978c02a

Browse files
ualtinokalfonso-aft
andcommitted
fix: complete Windows target gating for sandbox launcher and seam tests
Co-authored-by: Alfonso <289616620+alfonso-aft@users.noreply.github.com>
1 parent 3f84352 commit 978c02a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎crates/aft/src/cli/sandbox_launch.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn print_usage() {
279279
println!(" aft sandbox-launch --support");
280280
}
281281

282-
#[cfg(test)]
282+
#[cfg(all(test, any(target_os = "macos", target_os = "linux")))]
283283
mod tests {
284284
use super::*;
285285

‎crates/aft/src/sandbox_spawn.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use std::io::Write;
3030
#[cfg(unix)]
3131
use std::os::unix::fs::OpenOptionsExt;
3232
use std::path::{Path, PathBuf};
33+
#[cfg(unix)]
3334
use std::process::Command;
3435
use std::sync::{Mutex, OnceLock};
3536

@@ -102,6 +103,7 @@ impl SpawnPlan {
102103
}
103104

104105
#[cfg(test)]
106+
#[cfg(unix)]
105107
pub(crate) fn launcher_for_test(profile: SandboxProfile, launcher_path: PathBuf) -> Self {
106108
Self::Launcher {
107109
profile,

0 commit comments

Comments
 (0)