Skip to content

Test(lib/net): Fix hostname_smoketest for Win7#158563

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
PaulDance:patches/fix-win7-hostname_smoketest
Jun 30, 2026
Merged

Test(lib/net): Fix hostname_smoketest for Win7#158563
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
PaulDance:patches/fix-win7-hostname_smoketest

Conversation

@PaulDance

@PaulDance PaulDance commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This test currently fails under both x86 and x86_64 Win7 on:

thread 'net::tests::hostname_smoketest' (2304) panicked at library/std/src/net/tests.rs:46:14:
called `Result::unwrap()` on an `Err` value: Error { kind: Unsupported, message: "operation not supported on this platform" }

This is simply because the feature was made to be effectively disabled under these targets in #150905. The test is therefore fixed in order to reflect that appropriately.

cc #135142 @roblabla

@rustbot label O-windows-7 O-x86_32 O-x86_64 A-io T-libs

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. A-io Area: `std::io`, `std::fs`, `std::net` and `std::path` O-windows-7 OS: Windows 7 or Windows Server 2008 R2 or etc. O-x86_32 Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686) O-x86_64 Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64) labels Jun 29, 2026
@rust-log-analyzer

This comment has been minimized.

@PaulDance PaulDance force-pushed the patches/fix-win7-hostname_smoketest branch from 724b396 to 0ecefc5 Compare June 29, 2026 13:56
@PaulDance PaulDance marked this pull request as ready for review June 29, 2026 15:19
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 29, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 29, 2026
@rustbot

rustbot commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 13 candidates
  • Random selection from 6 candidates

@rustbot

This comment has been minimized.

@JohnTitor JohnTitor 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.

Could you fix this warning? #158563 (comment)
Otherwise LGTM.

View changes since this review

This test currently fails under both x86 and x86_64 Win7 on:

```
thread 'net::tests::hostname_smoketest' (2304) panicked at library/std/src/net/tests.rs:46:14:
called `Result::unwrap()` on an `Err` value: Error { kind: Unsupported, message: "operation not supported on this platform" }
```

This is simply because the feature was made to be effectively disabled
under these targets in PR 150905. The test is therefore fixed in order
to reflect that appropriately.

Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr>
@PaulDance PaulDance force-pushed the patches/fix-win7-hostname_smoketest branch from 0ecefc5 to 3ace8f4 Compare June 29, 2026 21:10
@PaulDance

Copy link
Copy Markdown
Contributor Author

Ah yes, sorry. Fixed.

@JohnTitor

Copy link
Copy Markdown
Member

Thanks! @bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 3ace8f4 has been approved by JohnTitor

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 1. This pull request will be tested once the tree is reopened.

@rust-bors rust-bors Bot 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 Jun 30, 2026
rust-bors Bot pushed a commit that referenced this pull request Jun 30, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #158600 (Fix `rustc --unpretty=expanded` emit of `[const] [unsafe] impl Trait for`)
 - #158560 (Move per-function debuginfo methods from codegen to builder methods)
 - #158563 (Test(lib/net): Fix `hostname_smoketest` for Win7)
 - #158571 (Update books)
 - #158592 (tests: only run `lexical-scope-in-match.rs` for LLDB >= 21)
rust-bors Bot pushed a commit that referenced this pull request Jun 30, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #158600 (Fix `rustc --unpretty=expanded` emit of `[const] [unsafe] impl Trait for`)
 - #158560 (Move per-function debuginfo methods from codegen to builder methods)
 - #158563 (Test(lib/net): Fix `hostname_smoketest` for Win7)
 - #158571 (Update books)
 - #158592 (tests: only run `lexical-scope-in-match.rs` for LLDB >= 21)
@rust-bors rust-bors Bot merged commit 49a038c into rust-lang:main Jun 30, 2026
13 checks passed
@rustbot rustbot added this to the 1.98.0 milestone Jun 30, 2026
rust-timer added a commit that referenced this pull request Jun 30, 2026
Rollup merge of #158563 - PaulDance:patches/fix-win7-hostname_smoketest, r=JohnTitor

Test(lib/net): Fix `hostname_smoketest` for Win7

This test currently fails under both x86 and x86_64 Win7 on:

```
thread 'net::tests::hostname_smoketest' (2304) panicked at library/std/src/net/tests.rs:46:14:
called `Result::unwrap()` on an `Err` value: Error { kind: Unsupported, message: "operation not supported on this platform" }
```

This is simply because the feature was made to be effectively disabled under these targets in #150905. The test is therefore fixed in order to reflect that appropriately.

cc #135142 @roblabla

@rustbot label O-windows-7 O-x86_32 O-x86_64 A-io T-libs
@PaulDance PaulDance deleted the patches/fix-win7-hostname_smoketest branch June 30, 2026 17:02
@PaulDance

Copy link
Copy Markdown
Contributor Author

🙏

bjorn3 pushed a commit to bjorn3/miri that referenced this pull request Jul 1, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#158600 (Fix `rustc --unpretty=expanded` emit of `[const] [unsafe] impl Trait for`)
 - rust-lang/rust#158560 (Move per-function debuginfo methods from codegen to builder methods)
 - rust-lang/rust#158563 (Test(lib/net): Fix `hostname_smoketest` for Win7)
 - rust-lang/rust#158571 (Update books)
 - rust-lang/rust#158592 (tests: only run `lexical-scope-in-match.rs` for LLDB >= 21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-io Area: `std::io`, `std::fs`, `std::net` and `std::path` O-windows-7 OS: Windows 7 or Windows Server 2008 R2 or etc. O-x86_32 Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686) O-x86_64 Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants