darcs

Patch 1394 using mmap on Windows was causing test failures

Title using mmap on Windows was causing test failures
Superseder Nosy List ganesh
Related Issues
Status accepted Assigned To
Milestone 2.12.0

Created on 2015-09-19.10:00:23 by ganesh, last changed 2015-11-06.17:39:13 by gh.

Files
File name Status Uploaded Type Edit Remove
patch-preview.txt ganesh, 2015-09-19.10:00:22 text/x-darcs-patch
unnamed ganesh, 2015-09-19.10:00:22
using-mmap-on-windows-was-causing-test-failures.dpatch ganesh, 2015-09-19.10:00:22 application/x-darcs-patch
See mailing list archives for discussion on individual patches.
Messages
msg18736 (view) Author: ganesh Date: 2015-09-19.10:00:22
I enabled this in "always compile with mmap support", but it seems
actually using mmap in Darcs.Util.ByteString causes test failures
on Windows, e.g. in issue1248. I'm not sure if I didn't run the test
suite at the time of my original patch or if something has changed
on my machine, but either way it seems dubious to keep using mmap there
until we know when it's safe to do.

In this patch I've directly inlined the "no mmap" behaviour choice
and made it Windows only rather than passing a flag through from
cabal as was done previously, as I'm not aware of non-Windows cases
where it's needed.

Note that we still depend on the mmap package for hashed-storage
which has always required it. I'm not sure why or if it's ok for
hashed-storage to be using it.


1 patch for repository darcs-unstable@darcs.net:screened:

Sat Sep 19 10:26:40 BST 2015  Ganesh Sittampalam <ganesh@earth.li>
  * using mmap on Windows was causing test failures
Attachments
msg18804 (view) Author: ganesh Date: 2015-10-23.06:05:55
self-accepting as it's been waiting for review for a few weeks - also 
it's pretty trivial
msg18834 (view) Author: gh Date: 2015-11-06.17:39:13
I'm pushing this to branch 2.10 so more people can have working tests.
History
Date User Action Args
2015-09-19 10:00:23ganeshcreate
2015-09-19 10:07:07ganeshsetstatus: needs-screening -> needs-review
2015-10-23 06:05:56ganeshsetstatus: needs-review -> accepted-pending-tests
messages: + msg18804
2015-10-23 06:07:46ganeshsetstatus: accepted-pending-tests -> accepted
2015-11-06 17:39:13ghsetmessages: + msg18834
milestone: 2.12.0