Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 39822d3

Browse files
authored
Make test run on Windows
1 parent a11f5e8 commit 39822d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/agent/coverage/examples/coverage.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ mod test {
174174

175175
#[test]
176176
fn can_run_coverage() {
177+
#[cfg(target_os = "linux")]
177178
let cmd = command(&["ls".to_string()], None);
179+
180+
#[cfg(target_os = "windows")]
181+
let cmd = command(&["dir.exe".to_string()], None);
182+
178183
let recorded = CoverageRecorder::new(cmd)
179184
.timeout(Duration::from_secs(5))
180185
.record()

0 commit comments

Comments
 (0)