Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#![deny(rust_2018_idioms)]
use std::path::Path;
#[test]
fn test_override_temp_dir() {
#[cfg(not(target_os = "wasi"))]
assert_eq!(tempfile::env::temp_dir(), std::env::temp_dir());
let new_tmp = Path::new("/tmp/override");
tempfile::env::override_temp_dir(new_tmp).unwrap();
assert_eq!(tempfile::env::temp_dir(), new_tmp);
let new_tmp2 = Path::new("/tmp/override2");
tempfile::env::override_temp_dir(new_tmp2).expect_err("override should only be possible once");
}