test-fd-util: Replace dup() with fcntl()

Last remaining use of dup() in the codebase, let's get rid of it.
This commit is contained in:
Daan De Meyer
2026-03-20 22:11:15 +01:00
parent ea733800bd
commit 84d51e252d
+1 -1
View File
@@ -151,7 +151,7 @@ TEST(fd_move_above_stdio) {
new_fd = fd_move_above_stdio(new_fd);
assert_se(new_fd >= 3);
assert_se(dup(original_stdin) == 0);
assert_se(fcntl(original_stdin, F_DUPFD, 0) == 0);
assert_se(close_nointr(original_stdin) != EBADF);
assert_se(close_nointr(new_fd) != EBADF);
}