diff options
| author | Snooozs <204760317+Snooozs@users.noreply.github.com> | 2026-11-24 17:41:02 +0100 |
|---|---|---|
| committer | Snooozs <204760317+Snooozs@users.noreply.github.com> | 2026-11-24 17:42:32 +0100 |
| commit | cb878ea0345ea6d3ea8c2e9537e46a3740af10e0 (patch) | |
| tree | 97a711dda5f9f26eb26f37f562091be522b8ce48 /runtime/test/cpp_unwind_test.cpp | |
| parent | 82a2aabcc33bf296b5c2e3e4e7021fa506f8570e (diff) | |
TEST-BATCH-LAUNCH-EXITCODE: read the batch exit code after the child exits
The launch helper started cmd.exe with -PassThru, held $p.Handle and then
called WaitForExit(). For a stub batch that exits at once, ExitCode can be
null, and `exit $p.ExitCode` turned that into 0. A failing folder then read
as a pass. On origin/main the test failed in every run I made, with exit
code 7 reported as 0 in several folders.
The helper now starts with -Wait -PassThru, so ExitCode is read after the
process has exited, and a null code is reported as 999, which no folder
case expects. The parsed production ArgumentList expression and the folder
cases are unchanged; the negative control that drops the quotes still
fails as intended.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions