Skip to content

Commit

Permalink
Mark function as test-only
Browse files Browse the repository at this point in the history
  • Loading branch information
mqudsi committed Jan 4, 2025
1 parent 7eb254f commit 83eb25d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/fd_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i32, i32>: either the number of readable file descriptors
// or the error code from poll/select.
#[cfg(test)]
fn do_something_bad_during_select<F>(bad_action: F) -> Result<i32, i32>
where
F: FnOnce(OwnedFd) -> Option<OwnedFd>,
Expand Down

0 comments on commit 83eb25d

Please sign in to comment.