fix(graph): gate unix-only test imports behind cfg(unix)
The executor integration-test module hoisted job-test paths into module-level imports, but their only consumer is a #[cfg(unix)] test — on Windows the imports went unused and failed -D warnings.
This commit is contained in:
@@ -563,10 +563,14 @@ mod tests {
|
|||||||
mod integration_tests {
|
mod integration_tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::config::{AppState, WorkingMode};
|
use crate::config::{AppState, WorkingMode};
|
||||||
|
#[cfg(unix)]
|
||||||
use crate::function::jobs::RingBuf;
|
use crate::function::jobs::RingBuf;
|
||||||
|
#[cfg(unix)]
|
||||||
use crate::supervisor::{JobHandle, JobResult, JobState, JobStatus, Supervisor, notification};
|
use crate::supervisor::{JobHandle, JobResult, JobState, JobStatus, Supervisor, notification};
|
||||||
use crate::utils::{create_abort_signal, temp_file};
|
use crate::utils::{create_abort_signal, temp_file};
|
||||||
use std::{fs, mem};
|
use std::fs;
|
||||||
|
#[cfg(unix)]
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
fn cmd_available(name: &str) -> bool {
|
fn cmd_available(name: &str) -> bool {
|
||||||
which::which(name).is_ok()
|
which::which(name).is_ok()
|
||||||
|
|||||||
Reference in New Issue
Block a user