diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-03 02:56:19 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-03 08:22:53 +0000 |
| commit | e56858f05fd7071a39de7f7b1e632426fdf0624d (patch) | |
| tree | 2e9ebfc58c7c5f931fc8b49971aa2f8dcd635744 | |
| parent | b7b485efac8c1b601b9c0ada39921bad0e342970 (diff) | |
posix_spawn test: switch to POSIX spelling for addchdir and addfchdir
Reviewed by: dim
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D56222
| -rw-r--r-- | contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c b/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c index ce2078eae98e..58feb4f209ff 100644 --- a/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c +++ b/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c @@ -405,12 +405,12 @@ t_spawn_chdir_impl(bool chdir) posix_spawn_file_actions_addopen(&fa, fileno(stdout), TESTFILE, O_WRONLY | O_CREAT, 0600); if (chdir) { - ATF_REQUIRE(posix_spawn_file_actions_addchdir_np(&fa, + ATF_REQUIRE(posix_spawn_file_actions_addchdir(&fa, tmp_path) == 0); } else { tmpdir_fd = open(tmp_path, O_DIRECTORY | O_RDONLY); ATF_REQUIRE(tmpdir_fd > 0); - ATF_REQUIRE(posix_spawn_file_actions_addfchdir_np(&fa, + ATF_REQUIRE(posix_spawn_file_actions_addfchdir(&fa, tmpdir_fd) == 0); } err = posix_spawn(&pid, bin_pwd, &fa, NULL, args, NULL); |
