diff options
| author | Bitflash <btf01@proton.me> | 2026-08-01 15:24:34 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 15:24:34 -0300 |
| commit | 224c2dd1d1b2bfb9fd3e089d23fd4e739e49a106 (patch) | |
| tree | 2d83947ed77389a1d9e9764fe2321b55d50485a6 /src/Makefile | |
| parent | a2726cad9e9e11c73ae341ec627a696cdeb63edc (diff) | |
diag: make the self-test report where the person running it can see (#92)
On Windows the self-test from #91 printed nothing. printf in this tree is
OutputDebugStringF, which writes to the data directory debug.log, and the
Windows binary is linked -mwindows with no console. A failure was still caught,
since a non-zero return stops make, but it arrived with no way to tell which
check failed.
And because the first line printed before strSetDataDir pointed at the temporary
directory, every line was appended to the real debug.log -- the file users are
asked to paste into issues.
The file now gets the real printf, the data directory is set before anything
prints, and on Windows a console is borrowed only when stdout has nowhere to go.
That last condition matters: the first version reopened stdout unconditionally
and took the output away from `make tests > log`, which is the case that counts.
Diffstat (limited to 'src/Makefile')
0 files changed, 0 insertions, 0 deletions