Oops, forgot to msync.

geesefs-0-30-9
Aaron Jacobs 2015-03-24 12:58:59 +11:00
parent 597e126409
commit 331695907b
1 changed files with 3 additions and 0 deletions

View File

@ -676,6 +676,9 @@ func (t *NoErrorsTest) Mmap_WithMsync_MunmapBeforeClose() {
data[0] = 'p' data[0] = 'p'
// msync. This causes a write, but not a flush. // msync. This causes a write, but not a flush.
err = msync(data)
ExpectEq(nil, err)
ExpectThat(t.getFlushes(), ElementsAre()) ExpectThat(t.getFlushes(), ElementsAre())
ExpectThat(t.getFsyncs(), ElementsAre()) ExpectThat(t.getFsyncs(), ElementsAre())