Skip to content

fix(test): capture raw test output and prevent leak of debug messages - #89

Merged
okurz merged 2 commits into
openSUSE:masterfrom
okurz:feature/stabilize_and_improve_tests
Aug 3, 2026
Merged

fix(test): capture raw test output and prevent leak of debug messages#89
okurz merged 2 commits into
openSUSE:masterfrom
okurz:feature/stabilize_and_improve_tests

Conversation

@okurz

@okurz okurz commented Aug 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@okurz
okurz force-pushed the feature/stabilize_and_improve_tests branch 2 times, most recently from 322e2d8 to 52f660b Compare August 3, 2026 06:48
@okurz okurz changed the title bump GHA references + Improve tests fix(test): capture raw test output and prevent leak of debug messages Aug 3, 2026
@codecov

This comment was marked as outdated.

Motivation:
Raw STDOUT/STDERR from set_pipes => 0 processes and compile-time debug mode
warnings polluted the test runner TAP output.

Design Choices:
Use Test::Output's combined_from and stderr_like to capture extraneous print
statements, and safely reload the module with DEBUG disabled after testing.

Benefits:
The prove output is now a completely clean list of passing test files.
@okurz
okurz force-pushed the feature/stabilize_and_improve_tests branch from 52f660b to e3bca8d Compare August 3, 2026 07:21
@okurz
okurz force-pushed the feature/stabilize_and_improve_tests branch from e0b8f0b to 16031d8 Compare August 3, 2026 15:30
Motivation:
Process objects registered with Session created a strong reference cycle.
This leaked process objects and their pipe file descriptors.

Design Choices:
Weaken the registered process reference inside Session. Also update
clean() and all_processes() to safely handle undefined references.

Benefits:
Fixes memory and file descriptor leaks, ensuring processes and their
pipes are closed immediately when going out of scope.

Related issue: openSUSE#86
@okurz
okurz force-pushed the feature/stabilize_and_improve_tests branch from 16031d8 to 986177a Compare August 3, 2026 15:39
@okurz
okurz merged commit 076c7a5 into openSUSE:master Aug 3, 2026
14 checks passed
@okurz
okurz deleted the feature/stabilize_and_improve_tests branch August 3, 2026 16:05
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