Permalink
Browse files

2003-10-31 Zoltan Varga <vargaz@freemail.hu>

	* delegate7.cs: Convert it to use the test driver + add regression test
	for #50366.

svn path=/trunk/mono/; revision=19502
  • Loading branch information...
1 parent db8193c commit c491f9b7de6eb45b8180e842accb050076595209 @vargaz vargaz committed Oct 31, 2003
Showing with 19 additions and 2 deletions.
  1. +5 −0 mono/tests/ChangeLog
  2. +14 −2 mono/tests/delegate7.cs
View
@@ -1,3 +1,8 @@
+2003-10-31 Zoltan Varga <vargaz@freemail.hu>
+
+ * delegate7.cs: Convert it to use the test driver + add regression test
+ for #50366.
+
2003-10-25 Zoltan Varga <vargaz@freemail.hu>
* libtest.c pinvoke2.cs: Add tests for [In,Out] marshalling of arrays.
View
@@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
-class Test {
+class Tests {
delegate void SimpleDelegate ();
public static int v = 0;
@@ -19,7 +19,11 @@ class Test {
Console.WriteLine ("Test.F3");
}
- static int Main () {
+ public static int Main () {
+ return TestDriver.RunTests (typeof (Tests));
+ }
+
+ static public int test_0_test () {
SimpleDelegate t;
SimpleDelegate d1 = new SimpleDelegate (F1);
SimpleDelegate d2 = new SimpleDelegate (F2);
@@ -51,4 +55,12 @@ class Test {
return 0;
}
+
+ // Regression test for bug #50366
+ static public int test_0_delegate_equality () {
+ if (new SimpleDelegate (F1) == new SimpleDelegate (F1))
+ return 0;
+ else
+ return 1;
+ }
}

0 comments on commit c491f9b

Please sign in to comment.