We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab0700b commit e4b8d17Copy full SHA for e4b8d17
1 file changed
crates/memtrack/tests/integration_test.rs
@@ -9,12 +9,13 @@ use std::time::Duration;
9
use tempfile::TempDir;
10
11
pub fn track_binary(binary: &Path) -> anyhow::Result<(Vec<Event>, std::thread::JoinHandle<()>)> {
12
+ let mut tracker = Tracker::new()?;
13
+
14
let child = Command::new(binary)
15
.spawn()
16
.context("Failed to spawn command")?;
17
let root_pid = child.id() as i32;
18
- let mut tracker = Tracker::new()?;
19
tracker.enable()?;
20
let rx = tracker.track(root_pid)?;
21
0 commit comments