[System] Tweak socket test
[mono-project.git] / mono / tests / thread-2.cs
blob7e86463501f4748585217c9cd6ee4eaa7dd196d0
1 //
2 // thread-2.cs:
3 //
4 // Tests for net 2.0 thread features
5 //
7 using System;
8 using System.Threading;
10 public class Tests
12 public static int Main () {
13 return TestDriver.RunTests (typeof (Tests));
16 public static bool started = false;
18 public static void Start (object o) {
19 started = true;
22 public static int test_0_parameterized_thread_start () {
23 Thread t = new Thread (new ParameterizedThreadStart (Start));
24 t.Start ("AB");
26 return started ? 0 : 1;