Remove a use of EnvStack::principal()

Try to get off of globals.
This commit is contained in:
Peter Ammon 2024-06-19 13:43:55 -07:00
parent 01d45ad755
commit 0e96a420d6
No known key found for this signature in database

View file

@ -36,8 +36,8 @@ fn test_is_potential_path() {
let wd = L!("test/is_potential_path_test/").to_owned();
let wds = [L!(".").to_owned(), wd];
let vars = EnvStack::principal().clone();
let ctx = OperationContext::background(&*vars, EXPANSION_LIMIT_DEFAULT);
let vars = EnvStack::new();
let ctx = OperationContext::background(&vars, EXPANSION_LIMIT_DEFAULT);
assert!(is_potential_path(
L!("al"),