Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jul 3, 2024
1 parent ddde984 commit 1333d74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/nsis-process/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,17 +361,17 @@ mod tests {
#[test]
fn spawn_with_spaces() {
let current = std::env::current_dir().unwrap();

let dir = current.join("dir space");
std::fs::create_dir_all(dir).unwrap();

let systemroot = std::env::var("SYSTEMROOT").unwrap_or("C:\\Windows");

let cmd = format!("{systemroot}\\System32\\cmd.exe");
let cmd_out = dir.join("cmdout.exe");

std::fs::copy(cmd, cmd_out).unwrap();

unsafe { run_as_user(cmd_out.display().to_string().as_str(), "/c timeout 3") };
}
}

0 comments on commit 1333d74

Please sign in to comment.