using System;\r
using System.Globalization;\r
using System.Threading;\r
+using System.Diagnostics;\r
\r
namespace MonoTests.System.IO {\r
\r
{\r
AssertEquals ("test#01", false, Directory.Exists (null as string));\r
}\r
+\r
+ [Test]\r
+ [Category("NotDotNet")]\r
+ public void ExistsAccessDenied ()\r
+ {\r
+ // bug #78239\r
+\r
+ if (Path.DirectorySeparatorChar == '\\')\r
+ return; // this test does not work on Windows.\r
+\r
+ string path = TempFolder + DSC + "ExistsAccessDenied";\r
+ Process p;\r
+\r
+ Directory.CreateDirectory (path);\r
+ Process.Start ("/bin/chmod", "000 " + path).WaitForExit ();\r
+ try {\r
+ AssertEquals ("#1", false, Directory.Exists(path + DSC + "b"));\r
+ } finally {\r
+ Process.Start ("/bin/chmod", "755 " + path).WaitForExit ();\r
+ Directory.Delete (path);\r
+ }\r
+ }\r
\r
[Test]\r
[ExpectedException(typeof(ArgumentNullException))] \r
\r
[Test]\r
[ExpectedException(typeof(ArgumentException))]\r
+ [Ignore ("On IA64, causes nunit to abort due to bug #76388")]\r
public void MoveException4 ()\r
{\r
string path = TempFolder + DSC + "DirectoryTest.Test.13";\r