diff --git a/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs b/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs index 26cf4c8e9c..225670b0d0 100644 --- a/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs +++ b/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs @@ -9,8 +9,10 @@ use std::sync::mpsc; use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; use crate::common; +#[cfg(target_os = "linux")] +use crate::common::hermetic_path; use crate::common::{ - canonical_existing_path, hermetic_path, spawn_tracedecay_daemon, tracedecay_command_with_home, + canonical_existing_path, spawn_tracedecay_daemon, tracedecay_command_with_home, }; use serde_json::{Value, json}; use tempfile::TempDir; diff --git a/crates/tracedecay-mcp/src/handlers/edit_check.rs b/crates/tracedecay-mcp/src/handlers/edit_check.rs index 29e3bbf185..7def148940 100644 --- a/crates/tracedecay-mcp/src/handlers/edit_check.rs +++ b/crates/tracedecay-mcp/src/handlers/edit_check.rs @@ -335,8 +335,13 @@ mod tests { file: "caller.rs".to_owned(), line: 0, }; - let error = signature_edits(root.path(), &[target.clone()], &[target, caller], &[]) - .unwrap_err(); + let error = signature_edits( + root.path(), + std::slice::from_ref(&target), + &[target.clone(), caller], + &[], + ) + .unwrap_err(); assert!( matches!(error, TraceDecayError::Io(ref error) if error.kind() == std::io::ErrorKind::NotFound), "{missing}: {error}" diff --git a/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs b/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs index c805b94c05..710c8c5a00 100644 --- a/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs +++ b/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs @@ -932,7 +932,9 @@ async fn a_small_refresh_materializes_the_same_output_pages_at_both_base_sizes() assert_eq!(small.delta_rows, large.delta_rows); } +#[cfg(target_os = "linux")] const PEAK_PROBE_MODULES: &str = "TRACEDECAY_LAYERED_PEAK_PROBE_MODULES"; +#[cfg(target_os = "linux")] const PEAK_PROBE_LINE: &str = "layered-refresh-peak-kib "; /// Kibibytes one `/proc/self/status` field holds.