Author: gert
Date: 2006-11-28 14:01:51 -0500 (Tue, 28 Nov 2006)
New Revision: 68607

Modified:
   trunk/mcs/class/corlib/Test/System.IO/ChangeLog
   trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs
Log:
* DirectoryTest.cs: Use Assert.Ignore instead of silently ignoring test.


Modified: trunk/mcs/class/corlib/Test/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2006-11-28 19:01:28 UTC 
(rev 68606)
+++ trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2006-11-28 19:01:51 UTC 
(rev 68607)
@@ -1,3 +1,8 @@
+2006-11-28  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * DirectoryTest.cs: Use Assert.Ignore instead of silently ignoring
+       test.
+
 2006-11-07  Gert Driesen  <[EMAIL PROTECTED]>
 
        * DirectoryTest.cs: Use Assert class intead of deriving from 

Modified: trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs      2006-11-28 
19:01:28 UTC (rev 68606)
+++ trunk/mcs/class/corlib/Test/System.IO/DirectoryTest.cs      2006-11-28 
19:01:51 UTC (rev 68607)
@@ -9,16 +9,18 @@
 // TODO: Find out why ArgumentOutOfRange tests does not release directories 
properly
 //
 
-using NUnit.Framework;
-using System.IO;
-using System.Text;
 using System;
+using System.Diagnostics;
 using System.Globalization;
+using System.IO;
+using System.Text;
 using System.Threading;
-using System.Diagnostics;
 
-namespace MonoTests.System.IO {
+using NUnit.Framework;
 
+namespace MonoTests.System.IO
+{
+
 [TestFixture]
 public class DirectoryTest
 {
@@ -720,9 +722,7 @@
                // 
http://www.mono-project.com/FAQ:_Technical#How_to_detect_the_execution_platform_.3F
                int platform = (int) Environment.OSVersion.Platform;
                if ((platform == 4) || (platform == 128))
-                       // Unix doesnt support CreationTime
-                       // FIXME: use Assert.Ignore
-                       return;
+                       Assert.Ignore ("Unix doesn't support CreationTime");
 
                string path = TempFolder + DSC + "DirectoryTest.CreationTime.1";
                DeleteDirectory (path);
@@ -1329,7 +1329,6 @@
                dir.GetFiles ("*.nonext");
        }
 
-
        [Test]
        public void FilenameOnly () // bug 78209
        {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to