2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Fri, 1 Jul 2005 18:52:17 +0000 (18:52 -0000)
committerLluis Sanchez <lluis@novell.com>
Fri, 1 Jul 2005 18:52:17 +0000 (18:52 -0000)
* remoting1.cs: Test for getting a remote field value which is null.

svn path=/trunk/mono/; revision=46855

mono/tests/ChangeLog
mono/tests/remoting1.cs

index a9b2910ca989556cbb8ad1678e22be8f2cbf5510..96004fb9021a04a59baa3a78c3ca8ea3a096205e 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-01  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * remoting1.cs: Test for getting a remote field value which is null.
+
 2005-07-01  Raja R Harinath  <rharinath@novell.com>
 
        * Makefile.am (check-local): Call semdel-wrapper.
index 03dfbb0fa7062bba2118a0f03ff5a507df422e56..ce9589469e1dfa59b76da3c07504fc79d74551fc 100644 (file)
@@ -84,6 +84,7 @@ interface R2 {
 class R1 : MarshalByRefObject, R2 {
 
        public int test_field = 5;
+       public object null_test_field;
        
        public virtual MyStruct Add (int a, out int c, int b) {
                Console.WriteLine ("ADD");
@@ -204,6 +205,9 @@ class Test {
                if (o3.anObject != null)
                        return 15;
 
+               if (o.null_test_field != null)
+                       return 16;
+
                return 0;
        }
 }