From 51c074470ccd107da1ce3f49ab0c87fbc38e2300 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 17 May 2023 17:44:00 +0100 Subject: fixup! Introduce git_process class that invokes processes --- tests/util/process/win32.c | 5 +---- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.1