Made a test work on both Linux and OS X.

geesefs-0-30-9
Aaron Jacobs 2015-05-18 10:20:21 +10:00
parent 3338682836
commit 0c77f49eab
1 changed files with 1 additions and 1 deletions

View File

@ -1040,7 +1040,7 @@ func (t *ReadOnlyTest) OpenForWrite() {
func (t *ReadOnlyTest) Chtimes() {
err := os.Chtimes(path.Join(t.Dir, "foo"), time.Now(), time.Now())
ExpectThat(err, Error(HasSubstr("not permitted")))
ExpectThat(err, Error(MatchesRegexp("read-only|not permitted")))
}
func (t *ReadOnlyTest) Chmod() {