diff options
| author | bitflash <dev@bitflash.network> | 2026-08-19 11:34:12 -0300 |
|---|---|---|
| committer | bitflash <dev@bitflash.network> | 2026-08-19 11:34:12 -0300 |
| commit | 0cdcaee550093707b92827e7457ef33c1bf70fb5 (patch) | |
| tree | 113ec9ece886ff02fb24d3c7fcf838e9d6376456 /src/fuzz_script.cpp | |
| parent | e5a0a8fb8c83323ebd4fce88b84ae1b9f4570edc (diff) | |
selftest: unwrap system() exit status on Linux (RunBitflashChild)
The Linux branch of the child-process helper returned system()s raw wait
status instead of the exit code, so an exit code of 2 read back as 512.
Every assertion that checks a specific code (== 2), like the locked
recovery-audit test, failed only on Linux while the node itself was
correct. Windows was unaffected (_spawnv returns the code directly).
Unwrap with WIFEXITED/WEXITSTATUS so both platforms return the same value.
Test harness only; no change to node behavior.
Diffstat (limited to 'src/fuzz_script.cpp')
0 files changed, 0 insertions, 0 deletions