eric pouech (@epo) commented about dlls/kernelbase/tests/process.c:
ok( cycles2 > cycles1, "CPU cycles used by process should be increasing.\n" ); }
+static void test_CreateProcessInternalW(void) +{ + STARTUPINFOW si; + PROCESS_INFORMATION pi; + WCHAR cmd[] = L"\"c:\\windows\\system32\\tasklist \" /?";
we tend not to depend on other executables when possible; so the preferred solution is to spawn the same image (see other tests in kernel32/tests/process.c, using 'selfname' + a verb) this allows also to check passed parameters and adjust exit code in child process accordingly (if needed) I'd add also leading spaces so that we test both cases (leading and trailing) I would be tempted to test also for a tab (not sure if it works though) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9882#note_127029