[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Threading TestAu
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Threading TestAutoResetEvent.cs,1.1,1.2 TestManualResetEvent.cs,1.1,1.2 |
Date: |
Mon, 17 Feb 2003 03:25:27 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Threading
In directory subversions:/tmp/cvs-serv29963/tests/runtime/System/Threading
Modified Files:
TestAutoResetEvent.cs TestManualResetEvent.cs
Log Message:
compatibility fixes
Index: TestAutoResetEvent.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Threading/TestAutoResetEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TestAutoResetEvent.cs 11 Jan 2003 06:36:00 -0000 1.1
--- TestAutoResetEvent.cs 17 Feb 2003 08:25:23 -0000 1.2
***************
*** 49,53 ****
e1 = new AutoResetEvent(false);
! x = e1.WaitOne(10);
AssertEquals("WaitOne(unset)", x, false);
--- 49,53 ----
e1 = new AutoResetEvent(false);
! x = e1.WaitOne(10,false);
AssertEquals("WaitOne(unset)", x, false);
***************
*** 55,59 ****
e1.Set();
! x = e1.WaitOne(10);
AssertEquals("WaitOne(set)", x, true);
--- 55,59 ----
e1.Set();
! x = e1.WaitOne(10,false);
AssertEquals("WaitOne(set)", x, true);
***************
*** 61,65 ****
// It should be reset now.
! x = e1.WaitOne(10);
AssertEquals("WaitOne(set)", x, false);
--- 61,65 ----
// It should be reset now.
! x = e1.WaitOne(10,false);
AssertEquals("WaitOne(set)", x, false);
Index: TestManualResetEvent.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Threading/TestManualResetEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TestManualResetEvent.cs 11 Jan 2003 06:36:00 -0000 1.1
--- TestManualResetEvent.cs 17 Feb 2003 08:25:23 -0000 1.2
***************
*** 49,53 ****
e1 = new ManualResetEvent(false);
! x = e1.WaitOne(10);
AssertEquals("WaitOne(unset)", x, false);
--- 49,53 ----
e1 = new ManualResetEvent(false);
! x = e1.WaitOne(10,false);
AssertEquals("WaitOne(unset)", x, false);
***************
*** 55,59 ****
e1.Set();
! x = e1.WaitOne(10);
AssertEquals("WaitOne(set)", x, true);
--- 55,59 ----
e1.Set();
! x = e1.WaitOne(10,false);
AssertEquals("WaitOne(set)", x, true);
***************
*** 61,65 ****
// It should still be set.
! x = e1.WaitOne(10);
AssertEquals("WaitOne(set)", x, true);
--- 61,65 ----
// It should still be set.
! x = e1.WaitOne(10,false);
AssertEquals("WaitOne(set)", x, true);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Threading TestAutoResetEvent.cs,1.1,1.2 TestManualResetEvent.cs,1.1,1.2,
Gopal.V <address@hidden> <=