upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/process_cmdline_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/test/process_cmdline_test.cpp')
-rw-r--r--runtime/test/process_cmdline_test.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/runtime/test/process_cmdline_test.cpp b/runtime/test/process_cmdline_test.cpp
index a550910b9..bf55821d1 100644
--- a/runtime/test/process_cmdline_test.cpp
+++ b/runtime/test/process_cmdline_test.cpp
@@ -439,23 +439,6 @@ int main() {
439 SetProcessAffinityMask(GetCurrentProcess(), process_mask); 439 SetProcessAffinityMask(GetCurrentProcess(), process_mask);
440 } 440 }
441 441
442 // The title's debug output is served (and logged as "[title] ..."); TerminateProcess is served by the shim too.
443 {
444 using DebugA = void(WINAPI*)(LPCSTR);
445 using DebugW = void(WINAPI*)(LPCWSTR);
446 const auto debug_a = reinterpret_cast<DebugA>(rt::shims::find("kernelbase.dll", "OutputDebugStringA"));
447 const auto debug_w =
448 reinterpret_cast<DebugW>(rt::shims::find("api-ms-win-core-debug-l1-1-0.dll", "OutputDebugStringW"));
449 if (!debug_a || !debug_w || !rt::shims::find("kernel32.dll", "TerminateProcess")) {
450 std::fprintf(stderr, "FAIL OutputDebugStringA/W and TerminateProcess are not served\n");
451 ++failures;
452 } else {
453 debug_a("process_cmdline: a narrow debug line\n");
454 debug_w(L"process_cmdline: a wide debug line Δ");
455 debug_a(nullptr);
456 }
457 }
458
459 if (failures) return 1; 442 if (failures) return 1;
460 std::printf("process_cmdline: GetCommandLineW parses back to __wargv, non-ASCII arguments intact (code page %u); " 443 std::printf("process_cmdline: GetCommandLineW parses back to __wargv, non-ASCII arguments intact (code page %u); "
461 "the WinMain line and the kernelbase/API-set names are the game's\n", 444 "the WinMain line and the kernelbase/API-set names are the game's\n",