mirror of
https://github.com/restic/restic.git
synced 2026-10-31 20:45:42 +00:00
Fix tests on freebsd
This commit is contained in:
1 parent
7e0a9aa565
commit
bd3ce5d4a3
4 files changed
+20
-6
No files matched your search
@@ -65,7 +65,10 @@ func (e *dirEntry) equals(other *dirEntry) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if runtime.GOOS != "darwin" {
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "freebsd":
|
||||
// Skip ModTime check on darwin and freebsd
|
||||
default:
|
||||
if e.fi.ModTime() != other.fi.ModTime() {
|
||||
fmt.Fprintf(os.Stderr, "%v: ModTime does not match (%v != %v)\n", e.path, e.fi.ModTime(), other.fi.ModTime())
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user