# HG changeset patch
# User Jun Wu <quark@fb.com>
# Date 2017-10-03 02:31:33
# Node ID b0c97e44576fbf2d3c7f14ff2582f9c67cf47148
# Parent  5b19f0442043fa067194a6095380b9e442ab1a9c

test-revlog-mmapindex: make it compatible with chg

The test misses an explicit flush().

Differential Revision: https://phab.mercurial-scm.org/D918

diff --git a/tests/test-revlog-mmapindex.t b/tests/test-revlog-mmapindex.t
--- a/tests/test-revlog-mmapindex.t
+++ b/tests/test-revlog-mmapindex.t
@@ -9,11 +9,12 @@ create verbosemmap.py
   >     util,
   > )
   > 
-  > def mmapread(orig, fp):
-  >     print "mmapping %s" % fp.name
-  >     return orig(fp)
+  > def extsetup(ui):
+  >     def mmapread(orig, fp):
+  >         ui.write("mmapping %s\n" % fp.name)
+  >         ui.flush()
+  >         return orig(fp)
   > 
-  > def extsetup(ui):
   >     extensions.wrapfunction(util, 'mmapread', mmapread)
   > EOF