Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Dec 14, 2023
1 parent 45c7e09 commit 8545ab6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/numbered_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,13 @@ mod tests {
assert!(dir_0.path().is_dir());
assert!(dir_1.path().is_dir());

let current = fs::read_link(parent.path().join("base-current")).unwrap();

// We know that on windows the first symlink probably didn't get removed, symlinks
// are best-effort there.
#[cfg(target_family = "unix")]
assert_eq!(dir_1.path(), current);
{
let current = fs::read_link(parent.path().join("base-current")).unwrap();
assert_eq!(dir_1.path(), current);
}
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn cargo_pid() -> Option<Pid> {
sys.refresh_process_specifics(ppid, what);
let parent = sys.process(ppid)?;
let parent_exe = parent.exe();
let parent_file_name = dbg!(parent_exe.file_name()?);
let parent_file_name = parent_exe.file_name()?;
if parent_file_name == OsStr::new(CARGO_NAME) || parent_file_name == OsStr::new(NEXTEST_NAME) {
Some(parent.pid())
} else if parent_file_name == OsStr::new("rustdoc") {
Expand Down

0 comments on commit 8545ab6

Please sign in to comment.