about summary refs log tree commit diff
path: root/tests/ui-fulldeps/std/create-dir-all-bare.rs
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2023-02-19 09:48:50 +0000
committerChris Denton <chris@chrisdenton.dev>2023-02-21 18:33:19 +0000
commit9b18b4440a8d8b052ef454dba9fdb95be99485e7 (patch)
treeba15c08243893d0a772c3b9823d4d72b1db32aca /tests/ui-fulldeps/std/create-dir-all-bare.rs
parentf7a132f4280cb8b01ba78126acc0cbea91951634 (diff)
downloadrust-9b18b4440a8d8b052ef454dba9fdb95be99485e7.tar.gz
rust-9b18b4440a8d8b052ef454dba9fdb95be99485e7.zip
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.
Diffstat (limited to 'tests/ui-fulldeps/std/create-dir-all-bare.rs')
-rw-r--r--tests/ui-fulldeps/std/create-dir-all-bare.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/ui-fulldeps/std/create-dir-all-bare.rs b/tests/ui-fulldeps/std/create-dir-all-bare.rs
deleted file mode 100644
index 4554680ec24..00000000000
--- a/tests/ui-fulldeps/std/create-dir-all-bare.rs
+++ /dev/null
@@ -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();
-}