Fix test failures on Solaris

Add exceptions for symlinks, sticky bits, and device nodes in the same places where the BSDSs and/or Darwin have them.
This commit is contained in:
Greg
2022-01-25 18:05:56 -08:00
parent df89aa0087
commit 2e9180638e
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func isSymlink(fi os.FileInfo) bool {
func sameModTime(fi1, fi2 os.FileInfo) bool {
switch runtime.GOOS {
case "darwin", "freebsd", "openbsd", "netbsd":
case "darwin", "freebsd", "openbsd", "netbsd", "solaris":
if isSymlink(fi1) && isSymlink(fi2) {
return true
}