2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / exit-stress.cs
blob6731918e0fc50be0de9ce2076f7cca7900df06bd
1 //
2 // https://bugzilla.novell.com/show_bug.cgi?id=379524
3 //
5 using System;
6 using System.Globalization;
7 using System.Threading;
9 class Program
11 static int Main (string [] args)
13 for (int i = 0; i < 1000; ++i) {
14 Thread thread = new Thread (new ThreadStart (Test));
15 if (i != 500)
16 thread.CurrentCulture = new CultureInfo ("en-CA");
17 thread.Start ();
19 return 1;
22 static void Test ()
24 string name = Thread.CurrentThread.CurrentCulture.Name;
25 if (name != "en-CA")
26 Environment.Exit (0);