Skip to content

Add Unit tests for SafeProcessMap and OSHandler class#213

Open
NicolasFussberger wants to merge 5 commits into
eclipse-score:mainfrom
etas-contrib:feature/safeprocessmap-oshandler-uts
Open

Add Unit tests for SafeProcessMap and OSHandler class#213
NicolasFussberger wants to merge 5 commits into
eclipse-score:mainfrom
etas-contrib:feature/safeprocessmap-oshandler-uts

Conversation

@NicolasFussberger
Copy link
Copy Markdown
Contributor

Adds unit tests for SafeProcessMap and OSHandler classes.

To improve testability, two small changes are done:

  • SafeProcessMap gets an ITerminationCallback interface instead of having a hard dependency on ProcessInfoNode class
  • OSHandler makes use of baselibs score::os::SysWait for better testability of the wait() systemcall

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.4.2) and connecting to it...
INFO: Invocation ID: 133bb91b-e8ae-4ad8-a187-750c59470dbb
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //:license-check (22 packages loaded, 10 targets configured)

Analyzing: target //:license-check (83 packages loaded, 10 targets configured)

Analyzing: target //:license-check (134 packages loaded, 2166 targets configured)

Analyzing: target //:license-check (146 packages loaded, 6608 targets configured)

Analyzing: target //:license-check (157 packages loaded, 8082 targets configured)

Analyzing: target //:license-check (157 packages loaded, 8094 targets configured)

Analyzing: target //:license-check (157 packages loaded, 8094 targets configured)

Analyzing: target //:license-check (161 packages loaded, 10106 targets configured)

INFO: Analyzed target //:license-check (162 packages loaded, 10232 targets configured).
[13 / 16] JavaToolchainCompileClasses external/rules_java+/toolchains/platformclasspath_classes; 0s disk-cache, processwrapper-sandbox
[14 / 16] JavaToolchainCompileBootClasspath external/rules_java+/toolchains/platformclasspath.jar; 0s disk-cache, processwrapper-sandbox
INFO: Found 1 target...
Target //:license.check.license_check up-to-date:
  bazel-bin/license.check.license_check
  bazel-bin/license.check.license_check.jar
INFO: Elapsed time: 21.333s, Critical Path: 2.71s
INFO: 16 processes: 12 internal, 3 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 16 total actions
INFO: Running command line: bazel-bin/license.check.license_check ./formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

@github-actions
Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

Comment thread score/launch_manager/daemon/src/process_group_manager/details/os_handler.cpp Outdated
@NicolasFussberger NicolasFussberger force-pushed the feature/safeprocessmap-oshandler-uts branch from 45fa89c to db3ee30 Compare June 1, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants