ReadOnlyTest.Chtimes

geesefs-0-30-9
Aaron Jacobs 2015-05-18 10:14:19 +10:00
parent dbc48cd39f
commit 039f159ab1
1 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import (
"runtime"
"syscall"
"testing"
"time"
"unsafe"
"golang.org/x/sys/unix"
@ -1021,7 +1022,8 @@ func (t *ReadOnlyTest) OpenForWrite() {
}
func (t *ReadOnlyTest) Chtimes() {
AssertTrue(false, "TODO")
err := os.Chtimes(path.Join(t.Dir, "foo"), time.Now(), time.Now())
ExpectThat(err, Error(HasSubstr("not permitted")))
}
func (t *ReadOnlyTest) Chmod() {