[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Threading TestM
From: |
Thong Nguyen <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Threading TestMonitor.cs,1.1,1.2 |
Date: |
Mon, 07 Jul 2003 22:52:58 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Threading
In directory subversions:/tmp/cvs-serv15059/tests/runtime/System/Threading
Modified Files:
TestMonitor.cs
Log Message:
Fix to make monitor tests check for threading support first.
Index: TestMonitor.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Threading/TestMonitor.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TestMonitor.cs 3 Jul 2003 22:23:22 -0000 1.1
--- TestMonitor.cs 8 Jul 2003 02:52:55 -0000 1.2
***************
*** 43,46 ****
--- 43,51 ----
public void TestMonitorSingleThreaded()
{
+ if (!TestThread.IsThreadingSupported)
+ {
+ return;
+ }
+
object o = new object();
***************
*** 53,56 ****
--- 58,66 ----
public void TestMonitorExitNoEnter()
{
+ if (!TestThread.IsThreadingSupported)
+ {
+ return;
+ }
+
object o = new object();
***************
*** 68,73 ****
public void TestMonitorEnterExitMismatch()
{
! object o = new object();
try
{
--- 78,88 ----
public void TestMonitorEnterExitMismatch()
{
! if (!TestThread.IsThreadingSupported)
! {
! return;
! }
+ object o = new object();
+
try
{
***************
*** 85,88 ****
--- 100,108 ----
public void TestMonitorEnterExitMultiple()
{
+ if (!TestThread.IsThreadingSupported)
+ {
+ return;
+ }
+
object o1 = new object();
object o2 = new object();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Threading TestMonitor.cs,1.1,1.2,
Thong Nguyen <address@hidden> <=