Fix tests on freebsd

This commit is contained in:
Alexander Neumann
2015-07-20 21:02:38 +02:00
parent 7e0a9aa565
commit bd3ce5d4a3
4 changed files with 20 additions and 6 deletions

View File

@@ -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