Author: lluis
Date: 2005-05-12 05:43:11 -0400 (Thu, 12 May 2005)
New Revision: 44428
Added:
trunk/mono/mono/tests/main-returns-background-change.cs
Modified:
trunk/mono/mono/tests/ChangeLog
trunk/mono/mono/tests/Makefile.am
Log:
2005-05-12 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* main-returns-background-change.cs: New test for changing the
background mode of a thread.
Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog 2005-05-12 09:36:01 UTC (rev 44427)
+++ trunk/mono/mono/tests/ChangeLog 2005-05-12 09:43:11 UTC (rev 44428)
@@ -1,3 +1,8 @@
+2005-05-12 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * main-returns-background-change.cs: New test for changing the
+ background mode of a thread.
+
2005-05-01 Zoltan Varga <[EMAIL PROTECTED]>
* libtest.c (mono_test_marshal_cdecl_delegate): New test for changing
the calling convention of
Modified: trunk/mono/mono/tests/Makefile.am
===================================================================
--- trunk/mono/mono/tests/Makefile.am 2005-05-12 09:36:01 UTC (rev 44427)
+++ trunk/mono/mono/tests/Makefile.am 2005-05-12 09:43:11 UTC (rev 44428)
@@ -202,6 +202,7 @@
main-returns-background-abort-resetabort.cs \
main-returns-background-resetabort.cs \
main-returns-background.cs \
+ main-returns-background-change.cs \
main-returns.cs \
subthread-exit.cs \
desweak.cs
Added: trunk/mono/mono/tests/main-returns-background-change.cs
===================================================================
--- trunk/mono/mono/tests/main-returns-background-change.cs 2005-05-12
09:36:01 UTC (rev 44427)
+++ trunk/mono/mono/tests/main-returns-background-change.cs 2005-05-12
09:43:11 UTC (rev 44428)
@@ -0,0 +1,26 @@
+
+using System;
+using System.Threading;
+
+public class foo {
+ public static void Main() {
+ Thread thr=new Thread(new ThreadStart(foo.thread));
+ thr.Start();
+ Console.WriteLine("Main thread returns");
+ }
+
+ public static void thread() {
+ Console.WriteLine("Thread running");
+ Thread.Sleep(500);
+ Console.WriteLine("Thread running");
+ Thread.Sleep(500);
+ Thread.CurrentThread.IsBackground = true;
+ Console.WriteLine("Thread running");
+ Thread.Sleep(500);
+ Console.WriteLine("Thread running");
+ Thread.Sleep(500);
+ Console.WriteLine("Thread running");
+ Environment.Exit (1);
+ }
+}
+
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches