[Mono-list] Requesting Assistance

Brice Carpentier brice@dlfp.org
Wed, 17 Mar 2004 18:17:12 +0100


deepak pn wrote:

> Hi,
>
> I am a new bee in “Contributing to the class library”.
>
> I have written test cases for about 8-10 classes and hence familiar 
> with almost all classes in “System.Threading” namespace.
>
> I am very much interested to complete *ALL* the TODOs in this namespace.
>
> I have a few problems:
>
> 1). The following code snippet appears in “Thread.cs”:
>
> [MethodImplAttribute(MethodImplOptions.InternalCall)]
>
> private extern static Thread CurrentThread_internal();
>
> I found from MSDN that the attribute “methodImplAttribute” is used 
> here to specify that the method is defined else where and that the 
> “InternalCall” refers to those methods implemented *WITHIN* the CLR.
>
> *WHERE* exactly are the definition of such methods found and *HOW* do 
> I know all such methods.
>
> 2). I have implemented two TODOs. I do not know whether they are fine.
>
> a). TODO1 :The false return value of Change() method of “Timer.cs”.
>
> b). TODO2 : The Dispose( bool ).
>
> 3). What is the exact functionality of the WaitHandle() Constructor.
>
> Can you please help me?
>
> Some of the test cases, which work perfectly on Windows/MS.NET, are 
> not working as expected on Linux/Mono. The details are:
>
> 1) AutoResetEventTest.cs
>
> a) TestAREConstructor() - Test does not succeed.
>
> TestReset() - Hangs mono
>
> I guess Abort() on a thread is not working as expected.
>
> b) None of the overloaded TestWaitAny() succeed.
>
> c) AutoResetEvent.WaitAll() and AutoResetEvent.WaitAny() do not throw 
> the expected DuplicateWaitObjectException when the argument array has 
> duplicate objects.
>
> 2) Timeout Class is OK.
>
> 3) TimerTest.cs
>
> a) TestArgumentNullException() - timer( null, X, X, X ) should cause 
> an ArgumentNullException - but no exception is thrown.
>
> b) TestObjectDisposedException() - when timer refers to null, calling 
> timer.Change should cause ObjectDisposedException, but 
> NullReferenceException is thrown.
>
> c) TestNullReferenceException() - calling timer.Dispose( myEvent ) 
> when myEvent refers to null causes no exception, but 
> NullReferenceException is expected.
>
> 4) InterlockedTest.cs
>
> a) TestDecrement () – Hangs mono.
>
> Can I post these to bugzilla?
>
> P.S: Timer.cs attached
>
> P.S: Test cases attached.
>
> Best regards,
>
> Deepak.
>
> *Yahoo! India Promos*: 
> <http://in.rd.yahoo.com/specials/mailtg/*http://in.promos.yahoo.com> 
> Win a trip for 2 to Britain. Click here 
> <http://in.rd.yahoo.com/specials/mailtg2/*http://in.promos.yahoo.com/bbcworld>. 
>
>
wouldn't this be better in mono-devel-list ?

-- 
Brice Carpentier aka Br|ce