-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Move some std tests from tests/ui-fulldeps
into library/std
#108233
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
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
20ea81b
to
87cd7f8
Compare
LGTM @bors r+ |
Move some std tests from `tests/ui-fulldeps` into `library/std` This allows them to be tested normally along with other `./x test std` tests. Moving `rename_directory` is simple enough but `create_dir_all_bare` needed to be an std integration test. Additionally, some tests that I couldn't move atm have instead been placed in an `std` subdirectory. These tests include ones that do fun things with processes or that intentionally abort the test process. r? libs
@bors r- |
@bors rollup=iffy |
1d2ae2b
to
e8d3491
Compare
This PR breaks our CI for the SGX platform as file system support is lacking (see sys/sgx/mod.rs:20-21. Using filesystem functions result in:
Can we cancel the merge and avoid running such tests on the SGX platform? |
It's already been cancelled. I'll add an exclusion. |
Great! Much appreciated @ChrisDenton ! |
Maybe we could add a |
std has had a `TempDir` implementation for a long time now.
Moving `create_dir_all` out of `ui-fulldeps` is complicated by the fact it sets the current directory. This means it can't be a unit test. Instead, move it to its own integration test.
And emscripten too.
ddacf9b
to
0f221cc
Compare
Maybe. But I'm not really sure how that would work with the build system. |
My r+ stands, feel free to r=me when ready. @rustbot author |
@bors r=thomcc |
⌛ Testing commit 0f221cc with merge a019e3ef6d28f152af34bedd49dd46bdba9ce82f... |
💔 Test failed - checks-actions |
@bors retry error building LLVM on i686-mingw-2 This PR should not affect building LLVM in any way. |
This comment was marked as outdated.
This comment was marked as outdated.
☀️ Test successful - checks-actions |
Finished benchmarking commit (26c9868): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
This allows them to be tested normally along with other
./x test std
tests. Movingrename_directory
is simple enough butcreate_dir_all_bare
needed to be an std integration test.Additionally, some tests that I couldn't move atm have instead been placed in an
std
subdirectory. These tests include ones that do fun things with processes or that intentionally abort the test process.r? libs