Make create_dir_all_bare an std integration test

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.
This commit is contained in:
Chris Denton 2023-02-19 09:48:50 +00:00
parent f7a132f428
commit 9b18b4440a
No known key found for this signature in database
GPG key ID: 713472F2F45627DE
4 changed files with 97 additions and 23 deletions

View file

@ -1,11 +0,0 @@
// run-pass
use std::env;
use std::fs;
use std::path::PathBuf;
fn main() {
let path = PathBuf::from(env::var_os("RUST_TEST_TMPDIR").unwrap());
env::set_current_dir(&path).unwrap();
fs::create_dir_all("create-dir-all-bare").unwrap();
}