Skip to content

test: add expected_status to wait_for_gdb_child_process#513

Merged
schopin-pro merged 1 commit intocanonical:mainfrom
bdrung:gdb-child
May 28, 2025
Merged

test: add expected_status to wait_for_gdb_child_process#513
schopin-pro merged 1 commit intocanonical:mainfrom
bdrung:gdb-child

Conversation

@bdrung
Copy link
Member

@bdrung bdrung commented May 27, 2025

Rename the helper method wait_for_gdb_sleeping_child_process to wait_for_gdb_child_process and allow specifying the expected status instead of hard-coding searching for the sleep state. Also query the GDB child processes recursively. This change allows detecting processes that kill themselves.

This PR is split from #486 which needs more work.

Rename the helper method `wait_for_gdb_sleeping_child_process` to
`wait_for_gdb_child_process` and allow specifying the expected status
instead of hard-coding searching for the `sleep` state. Also query the
GDB child processes recursively. This change allows detecting processes
that kill themselves.
@codecov
Copy link

codecov bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.94%. Comparing base (6ddbd7e) to head (43244a8).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #513      +/-   ##
==========================================
- Coverage   83.95%   83.94%   -0.01%     
==========================================
  Files         101      101              
  Lines       20506    20506              
  Branches     3214     3214              
==========================================
- Hits        17215    17214       -1     
  Misses       2843     2843              
- Partials      448      449       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bdrung bdrung requested a review from schopin-pro May 27, 2025 20:22
@schopin-pro schopin-pro merged commit 36f560c into canonical:main May 28, 2025
20 checks passed
@bdrung bdrung deleted the gdb-child branch May 28, 2025 11:20
@bdrung bdrung added this to the 2.33.0 milestone May 30, 2025
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