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

ReadOnlyTest.Chtimes

parent dbc48cd3
...@@ -25,6 +25,7 @@ import ( ...@@ -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() { ...@@ -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() {
......
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