summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-17 17:44:00 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-17 17:44:00 +0100
commit51c074470ccd107da1ce3f49ab0c87fbc38e2300 (patch)
tree5bcdce55a3af6feffa988bc0edd89adbf3c61846
parentb0264c6b3d4574858f92e5179a6f769fb7624173 (diff)
downloadlibgit2-51c074470ccd107da1ce3f49ab0c87fbc38e2300.tar.gz
fixup! Introduce git_process class that invokes processes
-rw-r--r--tests/util/process/win32.c5
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)