Imported Upstream version 3.10.0

Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
Jo Shields
2014-10-04 11:27:48 +01:00
parent fe777c5c82
commit 8b9b85e7f5
970 changed files with 20242 additions and 31308 deletions

View File

@ -706,7 +706,6 @@ namespace MonoTests.System.IO
}
}
#if !TARGET_JVM // No support IntPtr file handles under TARGET_JVM
[Test, ExpectedException (typeof (IOException))]
public void CtorIOException2 ()
{
@ -718,9 +717,7 @@ namespace MonoTests.System.IO
stream.Close ();
}
}
#endif // TARGET_JVM
[Category("TargetJvmNotSupported")] // File sharing not supported for TARGET_JVM
[Test, ExpectedException (typeof (IOException))]
public void CtorIOException ()
{
@ -768,7 +765,6 @@ namespace MonoTests.System.IO
}
[Test]
[Category("TargetJvmNotSupported")] // File sharing not supported for TARGET_JVM
[ExpectedException (typeof (IOException))]
public void CtorAccess1Read2Write ()
{
@ -794,7 +790,6 @@ namespace MonoTests.System.IO
}
[Test]
[Category("TargetJvmNotSupported")] // File sharing not supported for TARGET_JVM
[ExpectedException (typeof (IOException))]
public void CtorAccess1Write2Write ()
{
@ -1022,7 +1017,6 @@ namespace MonoTests.System.IO
DeleteFile (path);
}
[Category("TargetJvmNotSupported")] // File locking not supported for TARGET_JVM
public void TestLock ()
{
string path = TempFolder + Path.DirectorySeparatorChar + "TestLock";
@ -1311,7 +1305,6 @@ namespace MonoTests.System.IO
}
}
#if !TARGET_JVM // No support IntPtr file handles under TARGET_JVM
// Check that the stream is flushed even when it doesn't own the
// handle
[Test]
@ -1331,7 +1324,6 @@ namespace MonoTests.System.IO
Assert.AreEqual ((int) '1', s.ReadByte ());
s.Close ();
}
#endif // TARGET_JVM
private void DeleteFile (string path)
{
@ -1447,14 +1439,12 @@ namespace MonoTests.System.IO
}
}
#if !TARGET_JVM // No support IntPtr file handles under TARGET_JVM
[Test]
[ExpectedException (typeof (ArgumentException))]
public void Constructor_InvalidFileHandle ()
{
new FileStream ((IntPtr) (-1L), FileAccess.Read);
}
#endif // TARGET_JVM
[Test]
public void PositionAfterSetLength ()
@ -1493,7 +1483,6 @@ namespace MonoTests.System.IO
}
[Test]
[Category("TargetJvmNotSupported")] // Async IO not supported for TARGET_JVM
[ExpectedException (typeof (ObjectDisposedException))]
public void BeginRead_Disposed ()
{
@ -1505,7 +1494,6 @@ namespace MonoTests.System.IO
}
[Test]
[Category("TargetJvmNotSupported")] // Async IO not supported for TARGET_JVM
[ExpectedException (typeof (ObjectDisposedException))]
public void BeginWrite_Disposed ()
{
@ -1546,7 +1534,6 @@ namespace MonoTests.System.IO
}
[Test]
[Category("TargetJvmNotSupported")] // File locking not supported for TARGET_JVM
[ExpectedException (typeof (ObjectDisposedException))]
public void Lock_Disposed ()
{
@ -1558,7 +1545,6 @@ namespace MonoTests.System.IO
}
[Test]
[Category("TargetJvmNotSupported")] // File locking not supported for TARGET_JVM
[ExpectedException (typeof (ObjectDisposedException))]
public void Unlock_Disposed ()
{
@ -1621,7 +1607,6 @@ namespace MonoTests.System.IO
}
}
[Category("TargetJvmNotSupported")] // FileOptions.DeleteOnClose not supported for TARGET_JVM
[Test]
public void DeleteOnClose ()
{