Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: pdfd-reaper: fix tests when '-' is absent from kernel version #6681

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

hexagonal-sun
Copy link
Contributor

Motivation

On my machine, any pidfd reaper test that calls is_pidfd_available fails as my kernel version string does not contain a '-'; the code expects there to be one.

Solution

Fix the test so that is works regardless on whether the kernel string contains a '-'.

On my machine, any test that calls `is_pidfd_available` fails as my
kernel string does not contain a '-'; the code expects there to be one.

Fix the test so that is works regardless on whether the kernel string
contains a '-'.
Copy link
Member

@mox692 mox692 left a comment

Choose a reason for hiding this comment

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

Thanks.

@mox692 mox692 merged commit 4825c44 into tokio-rs:master Jul 14, 2024
77 checks passed
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-process Module: tokio/process labels Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-process Module: tokio/process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants