1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 17:27:25 +00:00

Merge pull request #1414 from bket/1307

Fix test failing on OpenBSD #1307
This commit is contained in:
Alexander Neumann 2017-11-08 18:54:44 +01:00
commit 06bd606d85

View file

@ -72,7 +72,7 @@ func sameModTime(fi1, fi2 os.FileInfo) bool {
} }
same := fi1.ModTime().Equal(fi2.ModTime()) same := fi1.ModTime().Equal(fi2.ModTime())
if !same && runtime.GOOS == "darwin" { if !same && (runtime.GOOS == "darwin" || runtime.GOOS == "openbsd") {
// Allow up to 1μs difference, because macOS <10.13 cannot restore // Allow up to 1μs difference, because macOS <10.13 cannot restore
// with nanosecond precision and the current version of Go (1.9.2) // with nanosecond precision and the current version of Go (1.9.2)
// does not yet support the new syscall. (#1087) // does not yet support the new syscall. (#1087)