From 331695907be430cab161fa3b3da58f212e6a67e6 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 24 Mar 2015 12:58:59 +1100 Subject: [PATCH] Oops, forgot to msync. --- samples/flushfs/flush_fs_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/flushfs/flush_fs_test.go b/samples/flushfs/flush_fs_test.go index 9d0b3fb..2f26c68 100644 --- a/samples/flushfs/flush_fs_test.go +++ b/samples/flushfs/flush_fs_test.go @@ -676,6 +676,9 @@ func (t *NoErrorsTest) Mmap_WithMsync_MunmapBeforeClose() { data[0] = 'p' // msync. This causes a write, but not a flush. + err = msync(data) + ExpectEq(nil, err) + ExpectThat(t.getFlushes(), ElementsAre()) ExpectThat(t.getFsyncs(), ElementsAre())