Skip to content

Commit

Permalink
Add some debug logging to the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Nov 6, 2024
1 parent fb3b2f8 commit eeda79b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eeda79b

Please sign in to comment.