aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repo_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/repo_test.go b/repo_test.go
index 9e72ac0..5a0abea 100644
--- a/repo_test.go
+++ b/repo_test.go
@@ -177,7 +177,10 @@ func TestSymlinks(t *testing.T) {
multi := io.MultiWriter(&output, os.Stderr)
logger.SetOutput(multi)
defer logger.SetOutput(os.Stderr)
- tmpDir := filepath.Clean(t.TempDir())
+ tmpDir, err := filepath.EvalSymlinks(t.TempDir())
+ if err != nil {
+ t.Fatal(err)
+ }
extDir := t.TempDir()
f, err := os.Create(filepath.Join(tmpDir, "existing"))
if err != nil {