From 039f159ab1c788a9531a4bf41d8a5786cee69cc9 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 18 May 2015 10:14:19 +1000 Subject: [PATCH] ReadOnlyTest.Chtimes --- samples/flushfs/flush_fs_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/flushfs/flush_fs_test.go b/samples/flushfs/flush_fs_test.go index 238f09a..646ebcb 100644 --- a/samples/flushfs/flush_fs_test.go +++ b/samples/flushfs/flush_fs_test.go @@ -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() {