Made a test work on both Linux and OS X.
parent
3338682836
commit
0c77f49eab
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue