Author: robertj
Date: 2007-08-23 01:47:48 -0400 (Thu, 23 Aug 2007)
New Revision: 84677

Modified:
   trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog
   trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs
Log:
2007-08-23  Robert Jordan  <[EMAIL PROTECTED]>

        * MarshalTest.cs: Added test for HGlobal allocations. See bug #82499.



Modified: trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog        
2007-08-23 04:25:04 UTC (rev 84676)
+++ trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/ChangeLog        
2007-08-23 05:47:48 UTC (rev 84677)
@@ -1,3 +1,7 @@
+2007-08-23  Robert Jordan  <[EMAIL PROTECTED]>
+
+       * MarshalTest.cs: Added test for HGlobal allocations. See bug #82499.
+
 2006-08-31 Robert Jordan  <[EMAIL PROTECTED]>
 
        * MarshalTest.cs: Added tests for PtrToStringAuto/StringToHGlobalAuto.

Modified: 
trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs   
2007-08-23 04:25:04 UTC (rev 84676)
+++ trunk/mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs   
2007-08-23 05:47:48 UTC (rev 84677)
@@ -366,6 +366,15 @@
                                Marshal.FreeHGlobal (ptr);
                        }
                }
+
+               [Test]
+               [Category ("NotWorking")]
+               public void TestGlobalAlloc ()
+               {
+                       IntPtr mem = Marshal.AllocHGlobal (100);
+                       mem = Marshal.ReAllocHGlobal (mem, (IntPtr) 1000000);
+                       Marshal.FreeHGlobal (mem);
+               }
        }
 
        [ComImport()]

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

Reply via email to