From eeda79b802f5b9ac90eb6deaabdc3b6ffcc9430c Mon Sep 17 00:00:00 2001 From: Nickolay Olshevsky Date: Wed, 6 Nov 2024 15:57:24 +0200 Subject: [PATCH] Add some debug logging to the tests. --- src/tests/cli.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/cli.cpp b/src/tests/cli.cpp index 82cc4e5a96..c8f9433065 100644 --- a/src/tests/cli.cpp +++ b/src/tests/cli.cpp @@ -376,6 +376,8 @@ TEST_F(rnp_tests, test_cli_rnpkeys_unicode) ZeroMemory(&si, sizeof si); PROCESS_INFORMATION pi; ZeroMemory(&pi, sizeof pi); + fprintf(stdout, "Running CreateProcessA:\n %s", cmdline_s.c_str()); + fflush(stdout); BOOL res = CreateProcessA(NULL, // (LPSTR) path_s.c_str(), // Module name (LPSTR) cmdline_s.c_str(), // Command line NULL, // Process handle not inheritable @@ -399,6 +401,8 @@ TEST_F(rnp_tests, test_cli_rnpkeys_unicode) STARTUPINFOW siw; ZeroMemory(&siw, sizeof siw); ZeroMemory(&pi, sizeof pi); + fprintf(stdout, "Running CreateProcessW:\n"); + fflush(stdout); res = CreateProcessW(NULL, (LPWSTR) cmdline_ws.c_str(), // Command line NULL, // Process handle not inheritable