Skip to content

android: stop skipping ioctl in tests - #5384

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
dybucc:android-ioctl
Aug 9, 2026
Merged

android: stop skipping ioctl in tests#5384
tgross35 merged 1 commit into
rust-lang:mainfrom
dybucc:android-ioctl

Conversation

@dybucc

@dybucc dybucc commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Description

Removes a skip in ctest for ioctl in Android targets. This was previously not
possible because there were issues with an overload exposed in Bionic libc. This
overload, though, is only conditionally exposed.

The macro used to skip the definition upstream has been added to the #defines
that we have set up in test_android in libc-test's build script.

Checklist

  • Relevant tests in libc-test/semver have been updated
  • Commit messages permalink to headers for added or changed API
  • Placeholder or unstable values like *LAST or *MAX have the standard
    doc comment
  • Tested locally (cargo test -p libc-test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot label +stable-nominated

Remove skip for `ioctl` and add `#define` for the macro required to get
this symbol's overload not to be exposed [^1]. This should allow there
to be only a single function signature against which to match.

[^1]: <https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/include/bits/ioctl.h;l=45;drc=f769f7ed768d2f691e77e9605f2a1f57f414ba6e>
@rustbot rustbot added S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Aug 7, 2026

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cc @maurer but I don't expect this to be problematic, the linked header documents this define as a way to get rid of the override. So LGTM

View changes since this review

@tgross35
tgross35 added this pull request to the merge queue Aug 9, 2026
Merged via the queue into rust-lang:main with commit 60e7684 Aug 9, 2026
57 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
Remove skip for `ioctl` and add `#define` for the macro required to get
this symbol's overload not to be exposed [^1]. This should allow there
to be only a single function signature against which to match.

[^1]: <https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/include/bits/ioctl.h;l=45;drc=f769f7ed768d2f691e77e9605f2a1f57f414ba6e>

(backport <rust-lang#5384>)
(cherry picked from commit 60e7684)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
Remove skip for `ioctl` and add `#define` for the macro required to get
this symbol's overload not to be exposed [^1]. This should allow there
to be only a single function signature against which to match.

[^1]: <https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/include/bits/ioctl.h;l=45;drc=f769f7ed768d2f691e77e9605f2a1f57f414ba6e>

(backport <rust-lang#5384>)
(cherry picked from commit 60e7684)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
Remove skip for `ioctl` and add `#define` for the macro required to get
this symbol's overload not to be exposed [^1]. This should allow there
to be only a single function signature against which to match.

[^1]: <https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/include/bits/ioctl.h;l=45;drc=f769f7ed768d2f691e77e9605f2a1f57f414ba6e>

(backport <rust-lang#5384>)
(cherry picked from commit 60e7684)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
Remove skip for `ioctl` and add `#define` for the macro required to get
this symbol's overload not to be exposed [^1]. This should allow there
to be only a single function signature against which to match.

[^1]: <https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/include/bits/ioctl.h;l=45;drc=f769f7ed768d2f691e77e9605f2a1f57f414ba6e>

(backport <rust-lang#5384>)
(cherry picked from commit 60e7684)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 31, 2026
Remove skip for `ioctl` and add `#define` for the macro required to get
this symbol's overload not to be exposed [^1]. This should allow there
to be only a single function signature against which to match.

[^1]: <https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/include/bits/ioctl.h;l=45;drc=f769f7ed768d2f691e77e9605f2a1f57f414ba6e>

(backport <rust-lang#5384>)
(cherry picked from commit 60e7684)
@tgross35 tgross35 mentioned this pull request Aug 31, 2026
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Aug 31, 2026
tgross35 pushed a commit to dybucc/libc that referenced this pull request Aug 31, 2026
Remove skip for `ioctl` and add `#define` for the macro required to get
this symbol's overload not to be exposed [^1]. This should allow there
to be only a single function signature against which to match.

[^1]: <https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/include/bits/ioctl.h;l=45;drc=f769f7ed768d2f691e77e9605f2a1f57f414ba6e>

(backport <rust-lang#5384>)
(cherry picked from commit 60e7684)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants