Skip to content

Commit

Permalink
try pass CI in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Feb 20, 2024
1 parent c56599a commit 22be20a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions monoio-macros/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,16 +349,19 @@ fn parse_knobs(mut input: syn::ItemFn, is_test: bool, config: FinalConfig) -> To
} else {
quote! {}
};
// todo
// disable some tests in windows, after the features are completed, it is necessary to rollback
// the code here
let cfg_attr = if is_test {
match config.driver {
DriverType::Legacy => quote! {
#[cfg(all(feature = "legacy", not(all(windows, feature = "sync"))))]
#[cfg(all(feature = "legacy", not(windows)))]
},
DriverType::Uring => quote! {
#[cfg(all(target_os = "linux", feature = "iouring"))]
},
DriverType::Fusion => quote! {
#[cfg(all(any(feature = "legacy", feature = "iouring"), not(all(windows, feature = "sync"))))]
#[cfg(all(any(feature = "legacy", feature = "iouring"), not(windows, feature = "sync")))]
},
}
} else {
Expand Down
1 change: 0 additions & 1 deletion monoio/tests/fs_file.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![cfg(not(windows))]
use std::io::prelude::*;
#[cfg(unix)]
use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
Expand Down

0 comments on commit 22be20a

Please sign in to comment.