Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Oct 25, 2023
1 parent 3bf77c4 commit 365aa98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,15 @@ macro_rules! fail_point {
($name:expr, $cond:expr, $e:expr) => {{}};
}

/// Define an async fail point (disabled, see `failpoints` feature).
#[macro_export]
#[cfg(not(feature = "failpoints"))]
macro_rules! async_fail_point {
($name:expr, $e:expr) => {{}};
($name:expr) => {{}};
($name:expr, $cond:expr, $e:expr) => {{}};
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 365aa98

Please sign in to comment.