Commit Graph
8 Commits
Author SHA1 Message Date
Rodrigo Kumpera c5771113c2 [runtime] Don't perform double accounting of offset for named memory segments. Fixes #20591 2014-06-19 14:32:48 -04:00
Rodrigo Kumpera 66aaa61cb7 [System.Core] Add new tests for MemoryMappedFile. 2014-06-13 14:53:34 -04:00
Miguel de Icaza a64dbc3e94 MemoryMappedFile fixes
This patch includes a few fixes:

	* CreateNew will actually create a memory map file, the previous logic
	  in MemoryMapImpl.Open was wrong, and would fail if the file did not
	  exist.   We now cope with this (bug #20052 was caused by this).

 	* Some exceptions were wrong, so this patch updates the
	  exceptions being thrown to be the right ones

	* On Mobile, we inverted the logic to ensure that capacity must be
	  bigger or equal than the file size (which is what the API needs to do),
	  previously it performed the opposite test.

Added tests that match the behavior on .NET for this.
2014-05-31 12:53:11 -04:00
Peter Lobsinger 75f83a1581 Add test for System.IO.MemoryMappedFiles.MemoryMappedViewAccessor.ReadArray(). 2012-03-04 00:34:28 -05:00
Jb Evain 16c589d582 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFileTest.cs: use proper overloads.


svn path=/trunk/mcs/; revision=157849
2010-05-25 13:50:59 +00:00
Marek Safar 5688d1dee4 Zip tests.
svn path=/trunk/mcs/; revision=152261
2010-02-23 10:44:18 +00:00
Zoltan Varga 1217d6467c 2009-09-05 Zoltan Varga <[email protected]>
* MemoryMappedFileTest.cs: Add a minimal test for CreateViewAccessor ().

svn path=/trunk/mcs/; revision=141377
2009-09-04 22:31:10 +00:00
Zoltan Varga bcc0515221 2009-08-30 Zoltan Varga <[email protected]>
* MemoryMappedFileTest.cs: New file.

svn path=/trunk/mcs/; revision=140932
2009-08-29 23:59:26 +00:00