Commit Graph
49 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Sebastien Pouliot de00f9d473 Ensure the new FileStream unit tests does not throw in the non-main thread (which nunit-console won't report but other tools, like Touch.Unit, will) 2013-07-09 20:17:37 -04:00
Marek Safar be2e73c7e8 Correctly reset buffer for nested asynchronous file stream writes. Fixes #12777 2013-07-05 18:47:22 +02:00
Marek Safar 762b050917 Merge tests from mobile branch 2013-02-26 16:28:36 +01:00
Marek Safar afa79435aa Update for mobile profile 2013-02-07 16:34:21 +01:00
Dan Shechter d8b7dfbffb Matched FileStream behaviour with MS.NET 2011-11-05 20:57:32 +02:00
Miguel de Icaza 2852ed0b59 Update copyrights 2011-09-13 18:26:13 -04:00
Sebastien Pouliot 97d989fa95 fix FileStream test failures under Mac OSX 2011-09-09 13:41:00 -04:00
Marek Safar 5241357859 Remove NET_2_0 2011-09-05 19:02:29 +01:00
Marek Habersack fe15b22c9e Revert r130049
svn path=/trunk/mcs/; revision=130110
2009-03-24 08:48:23 +00:00
Marek Habersack 82bbdb387b 2009-03-23 Marek Habersack <[email protected]>
* ConsoleTest.cs: added a bunch of tests for the standard input,
	output and error stream properties.

2009-03-23  Marek Habersack  <[email protected]>

	* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
	constructors

2009-03-23  Marek Habersack  <[email protected]>

	* Console.cs: OpenStandard{Input,Output,Error} no longer use
	FileStream on 2.0+. The reason is that SafeFileHandle used in the
	stream doesn't allow handles with values <= 0, and on Unix stdin
	is 0 which would break the Console class. Instead of FileStream,
	introduced a simple internal specialized stream which is used in
	this scenario.

2009-03-23  Marek Habersack  <[email protected]>

	* FileStream.cs: implemented full support for SafeFileHandle in
	2.0. The obsolete constructors taking an IntPtr now wrap it in a
	SafeFileHandle.

2009-03-23  Marek Habersack  <[email protected]>

	* SafeHandle.cs: added an internal property, OwnsHandle, used by
	FileStream.

svn path=/trunk/mcs/; revision=130049
2009-03-23 12:57:04 +00:00
Gert Driesen ddd50c633c * FileStreamTest.cs: Added test for bug #79250.
svn path=/trunk/mcs/; revision=80562
2007-06-22 17:41:31 +00:00
Eyal Alalouf 30c28c41d7 Mark tests as not working under TARGET_JVM
svn path=/trunk/mcs/; revision=74246
2007-03-14 10:47:05 +00:00
Eyal Alalouf a7a76b3f6a Port FileStreamTest to TARGET_JVM.
svn path=/trunk/mcs/; revision=73799
2007-03-06 10:41:16 +00:00
Eyal Alalouf f65669f34f Port NUnit tests to TARGET_JVM configuration.
svn path=/trunk/mcs/; revision=73714
2007-03-05 14:57:05 +00:00
Gert Driesen 6dd8ccef86 * FileStream.cs: Always resolve to absolute paths for exceptions, when not
in anonymous mode.     
* FileStreamTest.cs: Added and improved tests to verify whether the
reported exceptions match that of MS.

svn path=/trunk/mcs/; revision=72048
2007-01-31 19:26:17 +00:00
Miguel de Icaza 506f412796 Add test
svn path=/trunk/mcs/; revision=59963
2006-04-26 23:34:15 +00:00
Gonzalo Paniagua Javier 16232e93ec 2006-03-21 Gonzalo Paniagua Javier <[email protected]>
* FileStreamTest.cs: new test from bug #77863.


svn path=/trunk/mcs/; revision=58250
2006-03-21 21:03:12 +00:00
Gert Driesen 201a21a253 * FileStream.cs: To match MSFT, ignore FileShare.Inheritable on 2.0
profile. This fixes bug #77644. Improved usefulness of some existing
exception messages.
* FileStreamTest.cs: Fixed tests for invalid share value to pass on
MS.NET 2.0, and all Mono profiles. Added test that verifies the
correct behavior of all possible FileMode and FileAccess combinations.
Fixed compiler warning.

svn path=/trunk/mcs/; revision=57337
2006-02-27 17:45:07 +00:00
Gert Driesen 6884ab8e2c * FileStreamTest.cs: Spaces to tabs, (re)numbered tests.
svn path=/trunk/mcs/; revision=57280
2006-02-25 16:00:24 +00:00
Gonzalo Paniagua Javier b7088c2b80 add comment on bug status
svn path=/trunk/mcs/; revision=45453
2005-06-06 01:11:41 +00:00
Sebastien Pouliot 87e6a3c02b 2005-03-15 Sebastien Pouliot <[email protected]>
* FileStreamTest.cs: Added tests for all FileMode when a directory
	doesn't exists. Added a test for UnauthorizedAccessException when a
	directory is opened as a file.


svn path=/trunk/mcs/; revision=41857
2005-03-15 21:09:05 +00:00
Raja R Harinath 33e75c0000 * FileStreamTest.cs (Constructor_InvalidFileHandle): Fix to work
on 64-bit platforms.

svn path=/trunk/mcs/; revision=41357
2005-03-02 12:17:46 +00:00
Ben Maurer 8a2c3a6645 avoid writing stuff to the assembly dir. use the temp folder
svn path=/trunk/mcs/; revision=40900
2005-02-19 02:02:23 +00:00
Nick Drochak df28e2a102 2005-01-19 Nick Drochak <[email protected]>
* FileStreamTest.cs: Fix test regression on .NET. Need to close
	stream so other tests don't fail.

svn path=/trunk/mcs/; revision=39148
2005-01-19 13:01:02 +00:00
Miguel de Icaza 137e01d1e3 2005-01-18 Miguel de Icaza <[email protected]>
* TypeBuilder.cs: Add check for creation.  Fix from Geoff.


More test shuffling to get rid of all the failures from the standard build


svn path=/trunk/mcs/; revision=39074
2005-01-18 05:32:47 +00:00
Atsushi Eno 7d1ecfd7c4 2004-06-21 Atsushi Enomoto <[email protected]>
* FileStreamTest.cs : Added some tests on .ctor() without FileShare.

svn path=/trunk/mcs/; revision=30041
2004-06-21 14:46:14 +00:00
Atsushi Eno 8fa49e6e35 2004-06-16 Atsushi Enomoto <[email protected]>
* DirectoryInfoTest.cs,
	  DirectoryTest.cs,
	  FileStreamTest.cs,
	  FileSystemInfoTest.cs:
	  Replace all '/' in path with Path.DirectorySeparatorChar.

svn path=/trunk/mcs/; revision=30037
2004-06-21 13:42:39 +00:00
Duncan Mak 02a60df845 Fix embarrassing typos.
svn path=/trunk/mcs/; revision=28996
2004-06-07 23:09:12 +00:00
Duncan Mak 9eb61b41c6 * FileStream.cs (SetLength): The other exceptions have precendence
over ObjectDisposedException, which is not one of the exceptions
listed in the documentation). Also, instead of throwing an
ObjectDisposedException, throw an IOException.

* FileStreamTest.cs (SetLengthWithClosedBaseStream): New test for
checking that the correct exception is thrown when the base stream
is closed.

svn path=/trunk/mcs/; revision=28993
2004-06-07 22:24:05 +00:00
Sebastien Pouliot 3666377b63 2004-05-30 Sebastien Pouliot <[email protected]>
* FileStream.cs: Lots of new tests for exception handling (negatives,
	disposed) and test reading a byte ast the end of the stream.

svn path=/trunk/mcs/; revision=28496
2004-05-30 19:18:50 +00:00
Sebastien Pouliot c716a7bd6f 2004-05-30 Sebastien Pouliot <[email protected]>
* BufferedStreamTest.cs: Added tests for Position after SetLength,
	SetLength after Close and Seek logic exception handling.
	* FileStream.cs: Added test for invalid SeekOrigin in Seek.
	* MemoryStream.cs: Added test for Seek after Close.

svn path=/trunk/mcs/; revision=28491
2004-05-30 17:58:09 +00:00
Sebastien Pouliot 0683f54f83 2004-05-26 Sebastien Pouliot <[email protected]>
* FileStreamTest.cs: Added new tests for integer overflow checks.
	* StringReaderTest.cs: Added new tests for integer overflow checks.

svn path=/trunk/mcs/; revision=28175
2004-05-26 17:38:02 +00:00
David Sheldon b465d8dd8a 2004-01-22 David Sheldon <[email protected]>
* FileStreamTest.cs: CtorArgumentOutOfRangeException4, we were
       testing for this ecveption, but the other parameters were also
       invalid. Made them correct. We don't care that MS throw
       exceptions in a different order do we?

svn path=/trunk/mcs/; revision=22424
2004-01-23 09:50:08 +00:00
Nick Drochak f78034986e 2003-12-17 Nick Drochak <[email protected]>
* FileStreamTest.cs: Ok, it wasn't a 1.1 thing.  The test simply would
	fail randomly because location 12 was sometimes a file handle.

svn path=/trunk/mcs/; revision=21263
2003-12-17 07:41:21 +00:00
Nick Drochak f592fda33d 2003-12-16 Nick Drochak <[email protected]>
* FileStreamTest.cs: Exception not thrown in .NET 1.1.
		And Happy Birthday to Me!

svn path=/trunk/mcs/; revision=21224
2003-12-16 04:43:33 +00:00
Zoltan Varga e4d8fdcbb1 2003-06-30 Zoltan Varga <[email protected]>
* FileStreamTest.cs: New tests for flushing when disposed and zero
	buffer size.

svn path=/trunk/mcs/; revision=15745
2003-06-30 12:37:27 +00:00
Zoltan Varga fd0306326e 2003-06-12 Zoltan Varga <[email protected]>
* FileStreamTest.cs: New tests for recently fixed bugs.

svn path=/trunk/mcs/; revision=15337
2003-06-12 08:43:33 +00:00
Nick Drochak 85a7b2a87e 2003-05-29 Nick Drochak <[email protected]>
* BinaryReaderTest.cs: fix my oversight
	* BinaryWriterTest.cs: cleanups
	* BufferedStreamTest.cs: cleanups
	* DirectoryInfoTest.cs: cleanups
	* DirectoryTest.cs: cleanups
	* FileStreamTest.cs: cleanups

svn path=/trunk/mcs/; revision=14994
2003-05-29 15:09:51 +00:00
Nick Drochak dfada10b44 2003-05-29 Nick Drochak <[email protected]>
* BinaryReaderTest.cs:
	* BinaryWriterTest.cs:
	* DirectoryInfoTest.cs:
	* DirectoryTest.cs:
	* FileInfoTest.cs:
	* FileStreamTest.cs:
	* FileSystemInfoTest.cs: Stop throwing exceptions on windows, and sub-
	class from Assertion for brevity.

svn path=/trunk/mcs/; revision=14972
2003-05-28 15:39:52 +00:00
Zoltan Varga 78cf96d137 2003-05-19 Zoltan Varga <[email protected]>
* FileStreamTest.cs: New test for FileStream.Seek() bug.

svn path=/trunk/mcs/; revision=14694
2003-05-19 12:05:59 +00:00
Ville Palo 4407e82632 2003-05-15 Ville Palo <[email protected]>
* FileStreamTest.cs: more cleaning

svn path=/trunk/mcs/; revision=14597
2003-05-15 10:55:52 +00:00
Ville Palo d0f17062dd 2003-05-13 Ville Palo <[email protected]>
* FileStreamTest.cs:
	* FileTest.cs: Clean up. Now use temp directory. also some nunit2
	changes

svn path=/trunk/mcs/; revision=14549
2003-05-13 19:04:25 +00:00
Ville Palo 3be8442e3d 2003-05-04 Ville Palo <[email protected]>
* FileInfoTest.cs: new file.
	* FileStreamTest.cs: new tests for Seek ()

svn path=/trunk/mcs/; revision=14243
2003-05-04 09:38:30 +00:00
Ville Palo 1b94b1450d 2003-04-29 Ville Palo <[email protected]>
* FileStreamTest.cs: Tests for Flush() adn  one one more test for
	Ctor exceptions

svn path=/trunk/mcs/; revision=14115
2003-04-29 15:55:33 +00:00
Gonzalo Paniagua Javier 8d79b93f10 2003-04-12 Gonzalo Paniagua Javier <[email protected]>
* FileStreamTest.cs: added more tests by Gert Driesen
	([email protected]).

svn path=/trunk/mcs/; revision=13565
2003-04-12 18:12:19 +00:00
Ville Palo 26688be557 2003-04-12 Ville Palo <[email protected]>
* FileStreamTest.cs: Tiny fixes.

svn path=/trunk/mcs/; revision=13559
2003-04-12 16:09:50 +00:00
Ville Palo c43549091e 2003-04-12 Ville Palo <[email protected]>
* FileStreamTest.cs More tests.

svn path=/trunk/mcs/; revision=13547
2003-04-12 11:01:24 +00:00
Ville Palo 8f8adbfd03 2003-04-11 Ville Palo <[email protected]>
* FileStreamTest.cs: File Added and some tests in it.

svn path=/trunk/mcs/; revision=13519
2003-04-11 13:19:14 +00:00