[Mono-bugs] [Bug 542933] New: REGRESSION wrt. async delegates in trunk

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 29 14:38:26 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=542933


           Summary: REGRESSION wrt. async delegates in trunk
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: lupus at novell.com
        ReportedBy: martin at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Created an attachment (id=320316)
 --> (http://bugzilla.novell.com/attachment.cgi?id=320316)
Test case

The attached test case works with Mono 2.4, 2.4.2 and .NET but fails with the
latest Mono from trunk.

=====[full code attached to the bug report]====
TestRunnerDelegate runner = new TestRunnerDelegate (delegate {
    Thread.Sleep (2000);
    return new TestResult ();
});

IAsyncResult ar = runner.BeginInvoke (test_name, null, null);

if (!ar.AsyncWaitHandle.WaitOne (-1)) {
    Console.WriteLine ("TIMEOUT!");
    return;
}

TestResult result = runner.EndInvoke (ar);
if (result != null)
    return;

Console.WriteLine ("SHOULD NEVER HAPPEN !!!!");
====

'result' should never be null.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list