Compare commits

...
Author SHA1 Message Date
l0ng-ai 7cc52d7ed9 fix(flutter): compile the Flutter tests on Windows
The process tests that use FlutterDaemon::with_executable and
ToolServer::is_stopped only run on Unix, so on Windows both helpers were
dead code and the test build failed under -D warnings.
2026-11-25 18:49:55 +08:00
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -213,7 +213,7 @@ impl FlutterDaemon {
Self(Arc::new(Shared { root, sink, executable, state: Mutex::default() }))
}
#[cfg(test)]
#[cfg(all(test, unix))]
fn with_executable(root: PathBuf, sink: SharedSink, executable: Option<PathBuf>) -> Self {
Self::new(root, sink, Box::new(move || executable.clone()))
}
+1 -1
View File
@@ -146,7 +146,7 @@ impl ToolServer {
self.0.changed.notify_all();
}
#[cfg(test)]
#[cfg(all(test, unix))]
pub(crate) fn is_stopped(&self) -> bool {
matches!(self.0.state.lock().status, Status::Stopped)
}