diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-05-17 17:44:00 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-05-17 17:44:00 +0100 |
commit | 51c074470ccd107da1ce3f49ab0c87fbc38e2300 (patch) | |
tree | 5bcdce55a3af6feffa988bc0edd89adbf3c61846 | |
parent | b0264c6b3d4574858f92e5179a6f769fb7624173 (diff) | |
download | libgit2-51c074470ccd107da1ce3f49ab0c87fbc38e2300.tar.gz |
fixup! Introduce git_process class that invokes processes
-rw-r--r-- | tests/util/process/win32.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/util/process/win32.c b/tests/util/process/win32.c index 7442ee089..e55b8be1a 100644 --- a/tests/util/process/win32.c +++ b/tests/util/process/win32.c @@ -3,13 +3,10 @@ #include "vector.h" #ifdef GIT_WIN32 -static git_strarray input; static git_str result; # define assert_cmdline(expected, given) do { \ - input.count = ARRAY_SIZE(given); \ - input.strings = given; \ - cl_git_pass(git_process__cmdline(&result, &input)); \ + cl_git_pass(git_process__cmdline(&result, given, ARRAY_SIZE(given))); \ cl_assert_equal_s(expected, result.ptr); \ git_str_dispose(&result); \ } while(0) |