Skip to content

Process Launcher Unit Test - #680

Open
WilliamRoebuck wants to merge 17 commits into
eclipse-score:mainfrom
etas-contrib:feature/process_launcher_UT
Open

WilliamRoebuck wants to merge 17 commits into
eclipse-score:mainfrom
etas-contrib:feature/process_launcher_UT

Conversation

@WilliamRoebuck

Copy link
Copy Markdown
Contributor

98.5% line coverage for the file using syscall and osal mocks.

There are two remaining uncovered regions:

  • std::to_chars error handling
    • Defensive programming. With all current implementations, this cannot happen as there are 15 bytes of space in the buffer and the possible integer longest would be 9 long.
  • "Fork failed" case and log message
    • This is covered and the log can be observed, but the tooling seems not to recognise it

Some refactoring has been done to make the area more testable:

  • Semaphore init/deinit methods extracted to IpcCommsSync static methods
  • Added asserts instead of unreachable code
  • WaitForkRunning/ignoreRunning combined into one function

One small bug fixed:

  • A function that threw had been marked noexcept instead of noexcept(false)

@MaciejKaszynski MaciejKaszynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's resolve the comments on the impl, then I'll look at the UT as it might change

@WilliamRoebuck
WilliamRoebuck force-pushed the feature/process_launcher_UT branch from eaaa738 to 9df5a75 Compare September 24, 2026 09:57
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 09:57 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 09:57 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 09:57 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 09:57 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 13:42 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 13:42 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 13:42 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 13:42 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 14:06 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 14:06 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 14:06 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 14:06 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 16:14 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 16:14 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 16:14 — with GitHub Actions Active
@WilliamRoebuck
WilliamRoebuck deployed to workflow-approval September 24, 2026 16:14 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
workflow-approval — 35d98541 Deployed Sep 24, 2026 by WilliamRoebuck via Build and test unit-tests-x86_64-qnx / approval #1023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants