mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
37 lines
800 B
Markdown
37 lines
800 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.dll
|
|
at runtime and calls ghostty_info + ghostty_init to verify the MSVC C
|
|
runtime is properly initialized.
|
|
|
|
### Build
|
|
|
|
First build ghostty.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.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".
|