Files
ghostty/test/windows
Alessandro De Blasis 5d92222621 windows: address review feedback on DLL CRT init PR
Use b.allocator instead of b.graph.arena for SDK detection and
path formatting -- b.allocator is the public API, b.graph.arena
is an internal field.

Move test_dll_init.c from windows/Ghostty.Tests/ to test/windows/
with a README. Test infrastructure belongs under test/, not the
Windows app directory.
2026-03-27 06:04:09 -07:00
..

Windows Tests

Manual test programs for Windows-specific functionality.

test_dll_init.c

Regression test for the DLL CRT initialization fix. Loads ghostty.dll at runtime and calls ghostty_info + ghostty_init to verify the MSVC C runtime is properly initialized.

Build

zig cc test_dll_init.c -o test_dll_init.exe -target native-native-msvc

Run

copy ..\..\zig-out\lib\ghostty.dll . && test_dll_init.exe

Expected output (after the CRT fix):

ghostty_info: <version string>
ghostty_init: 0