Files
ghostty/test/windows/README.md
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

37 lines
827 B
Markdown

# 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".