diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-05-06 13:18:47 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-05-07 12:16:36 -0300 |
commit | 1e1ad714ee9a663eda0e2bffad1d9f258b00a4e9 (patch) | |
tree | 112d80611fd100e39ef5c19722def14bc5e0c1f7 /support/support_capture_subprocess.c | |
parent | c8a0e21da63b6e5c7f558cdd31a5d208c1677df3 (diff) | |
download | glibc-1e1ad714ee9a663eda0e2bffad1d9f258b00a4e9.tar.gz glibc-1e1ad714ee9a663eda0e2bffad1d9f258b00a4e9.tar.xz glibc-1e1ad714ee9a663eda0e2bffad1d9f258b00a4e9.zip |
support: Add envp argument to support_capture_subprogram
So tests can specify a list of environment variables. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'support/support_capture_subprocess.c')
-rw-r--r-- | support/support_capture_subprocess.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/support/support_capture_subprocess.c b/support/support_capture_subprocess.c index ffced8a89f..53847194cb 100644 --- a/support/support_capture_subprocess.c +++ b/support/support_capture_subprocess.c @@ -93,13 +93,14 @@ support_capture_subprocess (void (*callback) (void *), void *closure) } struct support_capture_subprocess -support_capture_subprogram (const char *file, char *const argv[]) +support_capture_subprogram (const char *file, char *const argv[], + char *const envp[]) { struct support_capture_subprocess result; xopen_memstream (&result.out); xopen_memstream (&result.err); - struct support_subprocess proc = support_subprogram (file, argv); + struct support_subprocess proc = support_subprogram (file, argv, envp); support_capture_poll (&result, &proc); return result; |