Author: zoltan
Date: 2008-02-11 17:54:49 -0500 (Mon, 11 Feb 2008)
New Revision: 95474
Modified:
trunk/mcs/class/Mono.Posix/Test/Mono.Unix/ChangeLog
trunk/mcs/class/Mono.Posix/Test/Mono.Unix/UnixSignalTest.cs
Log:
2008-02-12 Zoltan Varga <[EMAIL PROTECTED]>
* UnixSignalTest.cs: Fix the build.
Modified: trunk/mcs/class/Mono.Posix/Test/Mono.Unix/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Posix/Test/Mono.Unix/ChangeLog 2008-02-11 22:43:03 UTC
(rev 95473)
+++ trunk/mcs/class/Mono.Posix/Test/Mono.Unix/ChangeLog 2008-02-11 22:54:49 UTC
(rev 95474)
@@ -1,3 +1,7 @@
+2008-02-12 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * UnixSignalTest.cs: Fix the build.
+
2008-02-09 Jonathan Pryor <[EMAIL PROTECTED]>
* UnixSignalTest.cs: Added; tests Mono.Unix.UnixSignal.
Modified: trunk/mcs/class/Mono.Posix/Test/Mono.Unix/UnixSignalTest.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Test/Mono.Unix/UnixSignalTest.cs 2008-02-11
22:43:03 UTC (rev 95473)
+++ trunk/mcs/class/Mono.Posix/Test/Mono.Unix/UnixSignalTest.cs 2008-02-11
22:54:49 UTC (rev 95474)
@@ -21,7 +21,7 @@
[Test]
public void TestRaise ()
{
- Thread t1 = new Thread (delegate {
+ Thread t1 = new Thread (delegate () {
using (UnixSignal a = new UnixSignal
(Signum.SIGINT)) {
DateTime start = DateTime.Now;
bool r = a.WaitOne (5000,
false);
@@ -32,7 +32,7 @@
throw new
InvalidOperationException ("Signal slept too long");
}
});
- Thread t2 = new Thread (delegate {
+ Thread t2 = new Thread (delegate () {
Thread.Sleep (1000);
Stdlib.raise (Signum.SIGINT);
});
@@ -45,7 +45,7 @@
[Test]
public void TestRaiseAny ()
{
- Thread t1 = new Thread (delegate {
+ Thread t1 = new Thread (delegate () {
using (UnixSignal a = new UnixSignal
(Signum.SIGINT)) {
DateTime start = DateTime.Now;
int idx = UnixSignal.WaitAny
(new UnixSignal[]{a}, 5000);
@@ -56,7 +56,7 @@
throw new
InvalidOperationException ("Signal slept too long");
}
});
- Thread t2 = new Thread (delegate {
+ Thread t2 = new Thread (delegate () {
Thread.Sleep (1000);
Stdlib.raise (Signum.SIGINT);
});
@@ -69,7 +69,7 @@
[Test]
public void TestSeparation ()
{
- Thread t1 = new Thread (delegate {
+ Thread t1 = new Thread (delegate () {
using (UnixSignal a = new UnixSignal
(Signum.SIGINT))
using (UnixSignal b = new UnixSignal
(Signum.SIGTERM)) {
DateTime start = DateTime.Now;
@@ -82,7 +82,7 @@
throw new
InvalidOperationException ("Signal slept too long");
}
});
- Thread t2 = new Thread (delegate {
+ Thread t2 = new Thread (delegate () {
Thread.Sleep (1000);
Stdlib.raise (Signum.SIGTERM);
});
@@ -212,7 +212,7 @@
static Thread CreateRaiseStormThread (int max)
{
- return new Thread (delegate {
+ return new Thread (delegate () {
Random r = new Random (Environment.TickCount);
for (int i = 0; i < max; ++i) {
int n = r.Next (0, signals.Length);
@@ -242,7 +242,7 @@
static Thread CreateSignalCreatorThread ()
{
- return new Thread (delegate {
+ return new Thread (delegate () {
Random r = new Random (Environment.TickCount <<
4);
for (int i = 0; i < StormCount; ++i) {
int n = r.Next (0, signals.Length);
@@ -279,7 +279,7 @@
static Thread CreateWaitAnyThread (params UnixSignal[] usignals)
{
- return new Thread (delegate {
+ return new Thread (delegate () {
int idx = UnixSignal.WaitAny (usignals);
Assert.AreEqual (idx >= 0 && idx <
usignals.Length, true);
});
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches