mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
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.
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