Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 7 additions & 2 deletions crates/tracedecay-mcp/src/handlers/edit_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading