diff --git a/src/tests/fd_monitor.rs b/src/tests/fd_monitor.rs index f10e2b7d7..1be5972ad 100644 --- a/src/tests/fd_monitor.rs +++ b/src/tests/fd_monitor.rs @@ -159,6 +159,7 @@ fn test_fd_event_signaller() { // and then invokes the `bad_action` function on the file descriptor while the poll/select is // waiting. The function returns Result: either the number of readable file descriptors // or the error code from poll/select. +#[cfg(test)] fn do_something_bad_during_select(bad_action: F) -> Result where F: FnOnce(OwnedFd) -> Option,