test only methods declared in the tester
authorJb Evain <jbevain@gmail.com>
Sun, 8 Jun 2008 12:07:59 +0000 (12:07 -0000)
committerJb Evain <jbevain@gmail.com>
Sun, 8 Jun 2008 12:07:59 +0000 (12:07 -0000)
svn path=/trunk/mcs/; revision=105257

mcs/tests/gtest-etree-01.cs

index 5225b39d788a6e9e2bf8610782c6fec40cfef50f..1d14209c07f2e52304e7cd2bb3979662d073e238 100644 (file)
@@ -2590,7 +2590,7 @@ class Tester
 
        public static int Main ()
        {
-               var tests = from test in typeof (Tester).GetMethods (BindingFlags.Instance | BindingFlags.NonPublic)
+               var tests = from test in typeof (Tester).GetMethods (BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.DeclaredOnly)
                                        where test.GetParameters ().Length == 0
                                        orderby test.Name
                                        select RunTest (test);