diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-05 13:18:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 13:18:05 -0400 |
commit | becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a (patch) | |
tree | 3bfbda933913e5a4636241439d4f350956126431 /test/functional | |
parent | bfcec8d2f03cb4eb7dc905e97b1f1c13c2ec2241 (diff) | |
parent | 77b24c867bf55c84bf7c7b13c33bd7ee33880ac8 (diff) | |
download | rneovim-becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a.tar.gz rneovim-becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a.tar.bz2 rneovim-becbb7436f7f027f0ff1fcf440334c0b3a9a8e1a.zip |
Merge pull request #14724 from janlazo/vim-8.2.2877
vim-patch:8.0.1578,8.2.{2877,2937}
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/fixtures/streams-test.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/functional/fixtures/streams-test.c b/test/functional/fixtures/streams-test.c index eec447153c..be40edfe7e 100644 --- a/test/functional/fixtures/streams-test.c +++ b/test/functional/fixtures/streams-test.c @@ -6,23 +6,22 @@ #include <uv.h> -uv_loop_t *loop; -uv_process_t child_req; -uv_process_options_t options; - int main(int argc, char **argv) { - loop = uv_default_loop(); + uv_loop_t *loop = uv_default_loop(); + uv_process_t child_req; char * args[3]; args[0] = "sleep"; args[1] = "10"; args[2] = NULL; - options.exit_cb = NULL; - options.file = "sleep"; - options.args = args; - options.flags = UV_PROCESS_DETACHED; + uv_process_options_t options = { + .exit_cb = NULL, + .file = "sleep", + .args = args, + .flags = UV_PROCESS_DETACHED, + }; int r; if ((r = uv_spawn(loop, &child_req, &options))) { |