-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Projects
Status
Done
Activity
GuillaumeGomez commentedon Apr 16, 2025
How do you run doctests and under which edition? Asking because we recently changed how we were running doctests so like that I know where to look at.
m-ou-se commentedon Apr 16, 2025
@GuillaumeGomez I just run
./x.py test
in the rust-lang/rust repo.GuillaumeGomez commentedon Apr 16, 2025
Ah. So I guess I'll check if rustc is using the old or new doctests soon enough. :)
GuillaumeGomez commentedon May 6, 2025
Problem is that if doctests fail,
exit
is called and temporary folder is not cleaned up. No clue how I will add a regression test for that but at least the fix is done.GuillaumeGomez commentedon May 6, 2025
Fix opened in #140706.
lolbinarycat commentedon May 6, 2025
run_make test with
TMPDIR
set to a local dir, probably?10 remaining items