Skip to content

Conversation

Zalathar
Copy link
Contributor

There are a few tests that were using TARGET to quietly do nothing on i586 targets, but it's cleaner to just add support for //@ ignore-i586 instead.

This lets us get rid of an unsafe env::set_var in compiletest, which really should have been setting the environment variable on individual build/run subprocess commands anyway.

There are a few tests that were trying to skip i586 targets via the `TARGET`
environment variable instead, so better to just add support for the directive.
If something like this is needed again in the future, please set environment
variables for the build and run subprocesses, instead of setting them on the
compiletest process.
@rustbot
Copy link
Collaborator

rustbot commented Oct 21, 2025

compiletest directives have been modified. Please add or update docs for the
new or modified directive in src/doc/rustc-dev-guide/.

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 21, 2025
@rustbot rustbot added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 21, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 21, 2025

r? @jieyouxu

rustbot has assigned @jieyouxu.
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

@Zalathar
Copy link
Contributor Author

This was previously tested at #147896, but let's run some more try jobs on this PR just to be sure.

@bors try jobs=dist-i586-gnu-i586-i686-musl,i686-gnu-1,i686-msvc-1,test-various

rust-bors bot added a commit that referenced this pull request Oct 21, 2025
compiletest: Don't set `TARGET` for non run-make tests

try-job: dist-i586-gnu-i586-i686-musl
try-job: i686-gnu-1
try-job: i686-msvc-1
try-job: test-various
@rust-bors

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Oct 21, 2025

☀️ Try build successful (CI)
Build commit: ca68066 (ca68066f4d5b47d9d0925fe95dbf77a0f5ea49f1, parent: c7a635f33c5fbd1ead110243a2f4a5f0561d79b0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants