Skip to content

Conversation

@yomimono
Copy link
Contributor

  • replace oUnit with Alcotest
  • add a test for calling disconnect, and make it pass
  • add a test for calling writev with a list of combined length > 1 page, and make it pass

Previously, calling `writev` with a list whose lenv was greater than the
size of 1 page would result in an Invalid_argument exception.  Instead
of the buggy reimplementation of `Cstruct.concat`, just use
`Cstruct.concat`.

Also, the module type from mirage/types/V1.mli specifies that `write`
and `writev` take `buffer` and `buffer list` respectively, rather than
`page_aligned_buffer` and `page_aligned_buffer list`.  Fix some comments
and variable names in `write` which weren't correct in this light.
@yomimono
Copy link
Contributor Author

This package could probably use some build-system attention, but I'm happy to leave it here for this PR (considering #13 , the situation isn't worse than it was) .

mato added a commit to mato/mirage-net-solo5 that referenced this pull request Aug 19, 2016
This is a sync with the changes in mirage/mirage-net-unix#26.
@hannesm
Copy link
Member

hannesm commented Oct 1, 2016

great work!

@hannesm hannesm merged commit 459d1a1 into mirage:master Oct 1, 2016
@yomimono yomimono deleted the big_writes branch October 24, 2016 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants