Author: zoltan
Date: 2007-08-31 16:40:31 -0400 (Fri, 31 Aug 2007)
New Revision: 85153

Modified:
   trunk/mono/mono/tests/ChangeLog
   trunk/mono/mono/tests/handleref.cs
   trunk/mono/mono/tests/libtest.c
Log:
2007-08-31  Zoltan Varga  <[EMAIL PROTECTED]>

        * libtest.c handleref.cs: Fix handleref.exe test on sparc.


Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog     2007-08-31 20:29:33 UTC (rev 85152)
+++ trunk/mono/mono/tests/ChangeLog     2007-08-31 20:40:31 UTC (rev 85153)
@@ -1,3 +1,7 @@
+2007-08-31  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * libtest.c handleref.cs: Fix handleref.exe test on sparc.
+
 2007-08-24  Mark Probst  <[EMAIL PROTECTED]>
 
        * coreclr-security.cs, Makefile.am: Added test for CoreCLR

Modified: trunk/mono/mono/tests/handleref.cs
===================================================================
--- trunk/mono/mono/tests/handleref.cs  2007-08-31 20:29:33 UTC (rev 85152)
+++ trunk/mono/mono/tests/handleref.cs  2007-08-31 20:40:31 UTC (rev 85153)
@@ -9,7 +9,7 @@
        [DllImport ("libtest")]
        public static extern void mono_safe_handle_ref (ref HandleRef handle);
 
-       [DllImport ("libtest", EntryPoint="mono_xr")]
+       [DllImport ("libtest", EntryPoint="mono_xr_as_handle")]
        public static extern HandleRef mono_xr_as_handle (HandleRef r);
 
        [DllImport ("libtest")]

Modified: trunk/mono/mono/tests/libtest.c
===================================================================
--- trunk/mono/mono/tests/libtest.c     2007-08-31 20:29:33 UTC (rev 85152)
+++ trunk/mono/mono/tests/libtest.c     2007-08-31 20:40:31 UTC (rev 85153)
@@ -1962,13 +1962,26 @@
        return &add_delegate;
 }
 
-STDCALL int mono_xr (int code)
+STDCALL int
+mono_xr (int code)
 {
        printf ("codigo %x\n", code);
        return code + 1234;
 }
 
 typedef struct {
+       int handle;
+} HandleRef;
+
+STDCALL HandleRef
+mono_xr_as_handle (int code)
+{
+       HandleRef ref;
+
+       return ref;
+}
+ 
+typedef struct {
        int   a;
        void *handle1;
        void *handle2;

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

Reply via email to