[xBuild] Support use of properties defined in Choose elements in project references
[mono.git] / mono / tests / finalizer-wait.cs
index 5720bc1cd415731d1bbe826301f8cd0c2768b102..9b9bf2dc3df4f6d98f2759cf9e1b2f97dcd24fe9 100644 (file)
@@ -8,7 +8,7 @@ class P {
        ~P () {
                T.finalized = true;
                Thread.Sleep (1000);
-               //Console.WriteLine ("finalizer done");
+               // Console.WriteLine ("finalizer done");
                count++;
        }
 }
@@ -22,17 +22,10 @@ class T {
                p = null;
        }
 
-       static void callMakeP (int i) {
-               if (i <= 0)
-               {
-                       makeP ();
-                       return;
-               }
-               callMakeP (i - 1);
-       }
-
        static int Main () {
-               callMakeP (100);
+               var t = new Thread (makeP);
+               t.Start ();
+               t.Join ();
 
                GC.Collect ();
                while (!finalized) {