test(command): cover exec failure paths

Command tests did not assert behavior when exec fails in child processes.

I added deterministic regression coverage that forces execl/execlp failure and
verifies non-zero exit status propagation for both open() and forkExec paths.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman
2026-02-09 13:12:45 -06:00
parent 5e7dbf1715
commit 79fb1d9f58
2 changed files with 57 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ test_src = files(
'JsonParser.cpp',
'SafeSignal.cpp',
'sleeper_thread.cpp',
'command.cpp',
'css_reload_helper.cpp',
'../../src/util/css_reload_helper.cpp',
)