Author: zoltan
Date: 2005-04-04 09:23:40 -0400 (Mon, 04 Apr 2005)
New Revision: 42520

Modified:
   trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog
   trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/GCHandleTest.cs
Log:
2005-04-04  Zoltan Varga  <[EMAIL PROTECTED]>

        * GCHandleTest.cs: Add test for calling Alloc with null.


Modified: trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog        
2005-04-04 13:19:32 UTC (rev 42519)
+++ trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog        
2005-04-04 13:23:40 UTC (rev 42520)
@@ -1,3 +1,7 @@
+2005-04-04  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * GCHandleTest.cs: Add test for calling Alloc with null.
+
 2004-09-03  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * MarshalTest.cs: Add test for AllocHGlobal and zero size.

Modified: 
trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/GCHandleTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/GCHandleTest.cs  
2005-04-04 13:19:32 UTC (rev 42519)
+++ trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/GCHandleTest.cs  
2005-04-04 13:23:40 UTC (rev 42520)
@@ -24,6 +24,13 @@
                        AssertEquals (false, handle.IsAllocated);
                }
 
+               [Test]
+               public void AllocNull ()
+               {
+                       IntPtr ptr = (IntPtr)GCHandle.Alloc(null);
+                       GCHandle gch = (GCHandle)ptr;
+               }
+
        }
 }
 

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

Reply via email to