Commit 039f159a authored by Aaron Jacobs's avatar Aaron Jacobs

ReadOnlyTest.Chtimes

parent dbc48cd3
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment