From 83eb25d45f5ee41a0f72805cd47c19f0e6910108 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sat, 4 Jan 2025 17:29:09 -0600 Subject: [PATCH] Mark function as test-only --- src/tests/fd_monitor.rs | 1 + 1 file changed, 1 insertion(+) 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,