Skip to content

Commit

Permalink
fix: issue with symlinked temp dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Jan 5, 2022
1 parent a7d3850 commit 3987efb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util_test.go
Expand Up @@ -62,5 +62,7 @@ func TestChangeDirFlag(t *testing.T) {
p := Must(&cli)
_, err = p.Parse([]string{"-C", dir, "out.txt"})
require.NoError(t, err)
file, err = filepath.EvalSymlinks(file) // Needed because OSX uses a symlinked tmp dir.
require.NoError(t, err)
require.Equal(t, file, cli.Path)
}

0 comments on commit 3987efb

Please sign in to comment.