Author: gonzalo
Date: 2005-04-13 19:02:06 -0400 (Wed, 13 Apr 2005)
New Revision: 42969
Modified:
trunk/mcs/class/corlib/Test/System.IO/ChangeLog
trunk/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs
Log:
2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* DirectoryInfoTest.cs: added test for bug #53173.
Modified: trunk/mcs/class/corlib/Test/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/ChangeLog 2005-04-13 22:14:50 UTC
(rev 42968)
+++ trunk/mcs/class/corlib/Test/System.IO/ChangeLog 2005-04-13 23:02:06 UTC
(rev 42969)
@@ -1,3 +1,7 @@
+2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * DirectoryInfoTest.cs: added test for bug #53173.
+
2005-04-09 Miguel de Icaza <[EMAIL PROTECTED]>
* StreamWriterTest.cs: New test for bug #74513.
Modified: trunk/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs 2005-04-13
22:14:50 UTC (rev 42968)
+++ trunk/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs 2005-04-13
23:02:06 UTC (rev 42969)
@@ -561,6 +561,19 @@
if (Directory.Exists (path))
Directory.Delete (path, true);
}
-
+
+ [Test]
+ public void DirectoryNameWithSpace ()
+ {
+ if ((int) Environment.OSVersion.Platform != 128) {
+ DeleteDir ("this has a space at the end ");
+ string path = Path.Combine (TempFolder, "this
has a space at the end ");
+ Directory.CreateDirectory (path);
+ DirectoryInfo i = new DirectoryInfo (path);
+ string dummy = null;
+ foreach (FileInfo f in i.GetFiles ()) // This
used to throw
+ dummy = f.Name;
+ }
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches