mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 16:50:43 +00:00
An original C program, tests/compat_fixtures/gate_a2.c, is built from source with the mingw-w64 C runtime (UCRT) and run through the loader, the standard services and the ARM64 DBT. The runtime's own startup code runs before main; the program uses argc and argv, the heap, qsort, printf, a file written with fprintf and read back with fgets, atexit, and a return from main. Expected output is recomputed in Rust, not read back from a run. Control variants end in a failed check, in exit(42) and in abort(). The test fails, and does not skip, when the compiler is missing, so the CI workflow installs mingw-w64. Nothing from mingw-w64 is stored in the repository. Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>