diff --git a/tests/testing/chdir/chdir.go b/tests/testing/chdir/chdir.go index 75281c21f0..660b25acda 100644 --- a/tests/testing/chdir/chdir.go +++ b/tests/testing/chdir/chdir.go @@ -20,6 +20,11 @@ func main() { } if runtime.GOOS == "windows" { cwd = filepath.ToSlash(cwd) + } else { + expectDir, err = filepath.EvalSymlinks(expectDir) + if err != nil { + log.Fatal(err) + } } if cwd != expectDir { log.Fatalf("expected:\"%v\" != os.Getwd():\"%v\"", expectDir, cwd)