Oops, forgot to msync.
parent
597e126409
commit
331695907b
|
@ -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())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue