Skip to content

Commit f1ed8e7

Browse files
vsilentCopilot
andcommitted
fix: restore used enrichment vars and silence ptrace unused vars
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 77ed42a commit f1ed8e7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/collectors/event_enrichment_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn test_process_tree_enrichment() {
114114
let enricher = EventEnricher::new().expect("Failed to create enricher");
115115

116116
// Test that we can get parent PID
117-
let _ppid = enricher.get_parent_pid(1); // init process
117+
let ppid = enricher.get_parent_pid(1); // init process
118118

119119
// PID 1 should exist on Linux
120120
#[cfg(target_os = "linux")]
@@ -126,7 +126,7 @@ fn test_process_comm_enrichment() {
126126
let enricher = EventEnricher::new().expect("Failed to create enricher");
127127

128128
// Test that we can get process name
129-
let _comm = enricher.get_process_comm(std::process::id());
129+
let comm = enricher.get_process_comm(std::process::id());
130130

131131
// Should get some process name
132132
#[cfg(target_os = "linux")]

tests/collectors/ptrace_capture_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod linux_tests {
3535

3636
std::thread::sleep(Duration::from_millis(100));
3737

38-
let events = monitor.poll_events();
38+
let _events = monitor.poll_events();
3939

4040
// Verify structure ready for ptrace events
4141
assert!(true);
@@ -53,7 +53,7 @@ mod linux_tests {
5353

5454
std::thread::sleep(Duration::from_millis(100));
5555

56-
let events = monitor.poll_events();
56+
let _events = monitor.poll_events();
5757

5858
// Just verify monitor is working
5959
assert!(true);

0 commit comments

Comments
 (0)