rust/src/test/ui/process
bors ec55c61305 Auto merge of #96837 - tmiasko:stdio-fcntl, r=joshtriplett
Use `fcntl(fd, F_GETFD)` to detect if standard streams are open

In the previous implementation, if the standard streams were open,
but the RLIMIT_NOFILE value was below three, the poll would fail
with EINVAL:

> ERRORS: EINVAL The nfds value exceeds the RLIMIT_NOFILE value.

Switch to the existing fcntl based implementation to avoid the issue.

Fixes #96621.
2022-06-10 11:50:39 +00:00
..
core-run-destroy.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
fds-are-cloexec.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
issue-13304.rs Move tests 2022-05-20 10:53:58 -03:00
issue-14456.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-14940.rs Move some tests to more reasonable places 2022-05-08 17:31:05 -03:00
issue-16272.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-20091.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
multi-panic.rs Add needs-unwind directive to tests where necessary 2022-03-19 16:35:41 +01:00
no-stdio.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00
nofile-limit.rs Use fcntl(fd, F_GETFD) to detect if standard streams are open 2022-05-11 09:38:28 +02:00
process-envs.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
process-exit.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
process-panic-after-fork.rs Revert "Do not call getpid wrapper after fork in tests" 2021-11-05 14:49:26 -07:00
process-remove-from-env.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
process-sigpipe.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
process-spawn-nonexistent.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
process-spawn-with-unicode-params.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
process-status-inherits-stdin.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
signal-exit-status.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
sigpipe-should-be-ignored.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
tls-exit-status.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
try-wait.rs Move some tests to more reasonable directories 2021-11-18 12:09:34 -03:00