ReadOnlyTest.Chtimes
parent
dbc48cd39f
commit
039f159ab1
|
@ -25,6 +25,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
@ -1021,7 +1022,8 @@ func (t *ReadOnlyTest) OpenForWrite() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ReadOnlyTest) Chtimes() {
|
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() {
|
func (t *ReadOnlyTest) Chmod() {
|
||||||
|
|
Loading…
Reference in New Issue