Skip to content

Conversation

pietroalbini
Copy link
Member

In src/test/ui/command/command-create-pidfd.rs (added #81825), the detection code to skip the test on unsupported platforms doesn't account for unprivileged Docker containers (CI uses privileged containers), which leads to a test failure as you can't call the clone3 syscall in that environment. This PR enhances the detection code to also consider unprivileged containers.

@rust-highfive
Copy link
Contributor

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 12, 2021
@m-ou-se
Copy link
Member

m-ou-se commented Aug 12, 2021

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 12, 2021

📌 Commit 7a7d2d1 has been approved by m-ou-se

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 12, 2021
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Aug 13, 2021
Fix `command-create-pidfd` test inside unprivileged Docker containers

In `src/test/ui/command/command-create-pidfd.rs` (added rust-lang#81825), the detection code to skip the test on unsupported platforms doesn't account for unprivileged Docker containers (CI uses privileged containers), which leads to a test failure as you can't call the `clone3` syscall in that environment. This PR enhances the detection code to also consider unprivileged containers.
This was referenced Aug 13, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 13, 2021
…laumeGomez

Rollup of 4 pull requests

Successful merges:

 - rust-lang#87795 (Avoid ICE caused by suggestion)
 - rust-lang#87966 (Fix `command-create-pidfd` test inside unprivileged Docker containers)
 - rust-lang#87969 (Revert "Rollup merge of rust-lang#87779 - Aaron1011:stmt-ast-id, r=petrochenkov")
 - rust-lang#88005 (Add rustdoc GUI test for headers)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Collaborator

bors commented Aug 13, 2021

⌛ Testing commit 7a7d2d1 with merge 5de331b...

@bors bors merged commit fc3a90d into rust-lang:master Aug 13, 2021
@rustbot rustbot added this to the 1.56.0 milestone Aug 13, 2021
@pietroalbini pietroalbini deleted the fix-pidfd-test branch May 9, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants