Skip to content

Commit 2506c9f

Browse files
authored
benches: revert "properly gate unix benches" (#7412)
This reverts commit 933fa49.
1 parent b3a1448 commit 2506c9f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

benches/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ name = "sync_semaphore"
7171
path = "sync_semaphore.rs"
7272
harness = false
7373

74-
[[target.'cfg(unix)'.bench]]
74+
[[bench]]
7575
name = "signal"
7676
path = "signal.rs"
7777
harness = false
7878

79-
[[target.'cfg(unix)'.bench]]
79+
[[bench]]
8080
name = "fs"
8181
path = "fs.rs"
8282
harness = false

benches/fs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(unix)]
2+
13
use tokio_stream::StreamExt;
24

35
use tokio::fs::File;

benches/signal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Benchmark the delay in propagating OS signals to any listeners.
2+
#![cfg(unix)]
23

34
use criterion::{criterion_group, criterion_main, Criterion};
45
use std::future::Future;

0 commit comments

Comments
 (0)