summaryrefslogtreecommitdiff
path: root/libc/test/UnitTest/ExecuteFunctionUnix.cpp
diff options
context:
space:
mode:
authorSchrodinger ZHU Yifan <yifanzhu@rochester.edu>2025-11-14 13:36:05 -0500
committerGitHub <noreply@github.com>2025-11-14 13:36:05 -0500
commit5b798df8c48aab6db287aaf3ae45ff32283c4f9c (patch)
tree37ca2d47a45ee0dcf04a52f47143778009043821 /libc/test/UnitTest/ExecuteFunctionUnix.cpp
parentd06a7dd35e5a1d7b6309930cdf13033a3d08b542 (diff)
Revert "[libc][test] split exit tests into two separate tests" (#168102)
Reverts llvm/llvm-project#166355
Diffstat (limited to 'libc/test/UnitTest/ExecuteFunctionUnix.cpp')
-rw-r--r--libc/test/UnitTest/ExecuteFunctionUnix.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/test/UnitTest/ExecuteFunctionUnix.cpp b/libc/test/UnitTest/ExecuteFunctionUnix.cpp
index ab18f7a2ebf5..c0e85c214400 100644
--- a/libc/test/UnitTest/ExecuteFunctionUnix.cpp
+++ b/libc/test/UnitTest/ExecuteFunctionUnix.cpp
@@ -57,7 +57,9 @@ ProcessStatus invoke_in_subprocess(FunctionCaller *func, int timeout_ms) {
}
::close(pipe_fds[1]);
- pollfd poll_fd{pipe_fds[0], POLLIN, 0};
+ struct pollfd poll_fd {
+ pipe_fds[0], 0, 0
+ };
// No events requested so this call will only return after the timeout or if
// the pipes peer was closed, signaling the process exited.
if (::poll(&poll_fd, 1, timeout_ms) == -1) {