mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Mark function as test-only
This commit is contained in:
@@ -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
|
// 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
|
// waiting. The function returns Result<i32, i32>: either the number of readable file descriptors
|
||||||
// or the error code from poll/select.
|
// or the error code from poll/select.
|
||||||
|
#[cfg(test)]
|
||||||
fn do_something_bad_during_select<F>(bad_action: F) -> Result<i32, i32>
|
fn do_something_bad_during_select<F>(bad_action: F) -> Result<i32, i32>
|
||||||
where
|
where
|
||||||
F: FnOnce(OwnedFd) -> Option<OwnedFd>,
|
F: FnOnce(OwnedFd) -> Option<OwnedFd>,
|
||||||
|
|||||||
Reference in New Issue
Block a user