mirror-ghostty/test/windows
Alessandro De Blasis 19bf63ab71
test/windows: update README for ghostty-internal.dll rename
Match the dll filename rename so the copy/run instructions stay
accurate.
2026-04-11 03:02:08 +02:00
..
.gitignore windows: simplify DLL init test and improve README 2026-03-27 06:04:09 -07:00
README.md test/windows: update README for ghostty-internal.dll rename 2026-04-11 03:02:08 +02:00
test_dll_init.c test/windows: load ghostty-internal.dll in CRT init reproducer 2026-04-11 03:01:12 +02:00

README.md

Windows Tests

Manual test programs for Windows-specific functionality.

test_dll_init.c

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

Build

First build ghostty-internal.dll, then compile the test:

zig build -Dapp-runtime=none -Demit-exe=false
zig cc test_dll_init.c -o test_dll_init.exe -target native-native-msvc

Run

From this directory:

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

Expected output (after the CRT fix):

ghostty_info: <version string>

The ghostty_info call verifies the DLL loads and the CRT is initialized. Before the fix, loading the DLL would crash with "access violation writing 0x0000000000000024".