-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Move stdlib tests from src/test/ui-fulldeps to library/std/tests #99417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The `std` test straightforwardly can't work without file descriptors; rust-lang#99417 tracks moving it out of tests/ui. `issue-13560.rs` requires the target to support dynamic linking. `extern-mod-syntax` is interesting. The original test was added to check if `extern mod` could be parsed correctly and used `extern mod std` and an import: rust-lang@138dc30#diff-73700e1e851b7a37bc92174635dab726124c82e5bfabbbc45b4a3c2e8e14fadd At some point `std::json::Object` was moved out of std to an unstable rustc-only `extras` crate, and rather than just changing the import it got changed to use the unstable crate. When `extras` was removed, people assumed the test was meant to also test rustc_private and changed it to another unstable crate rather than using something in std. This changes the test to remove the `rustc_private` import, to allow it to work properly when cross-compiling.
Hi, is this no longer an issue? |
this is still an issue.
|
OK, is the |
@rustbot claim |
Hi, I managed to move the |
After asking on the discord, Stdin is apparently not made for tests so I have no idea how to do it for the |
Sorry I've not been around much lately. I believe I already moved the low hanging fruit with the remaining tests being much more tricky to move. Perhaps they will require changes to testing or maybe it'll never be possible to move them (in which case this issue should be closed as won't fix). The ultimate goal here would be to run as many std tests as possible when |
@MoskalykA I see a |
There's also a number of tests in |
…y-to-tests, r=workingjubilee Move two tests from `tests/ui/std` to `library/std/tests` Hi, there, This pull request comes from this issue (rust-lang#99417), sorry I made some mistakes creating the pull request, it's my first one.
@MoskalykA sorry for the delayed response but are you still interested in the other tests that are missing? |
Yes, as suggested by |
I can look on it but i need to know what am i supposed to do. |
@rustbot claim |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…workingjubilee Move some stdlib tests from `tests/ui` to `library/std/tests` Related to rust-lang#99417
Is this issue fully complete? what's remaining? I would love to take over in prompt time! |
This is probably what needs investigating at the moment, i.e. the current status of this issue. |
Sorry I've not been keeping up with the issue. I have now checked and it seems there are no longer any std tests in the ui-fulldeps directory so I'm closing this as complete. |
I think std tests should ideally live in the
library/std
directory but today we have a few that are insrc/test/ui-fulldeps
.Tests I think could be moved:
The text was updated successfully, but these errors were encountered: