[Mono-dev] SPAM-LOW: Failing Unit Tests of NET_2_0 Profile

Robert Jordan robertj at gmx.net
Mon Sep 17 18:44:40 EDT 2007


Hi Charlie,

Charlie Poole wrote:
> Hi Robert,
> 
>> People were complaining on IRC about failing class libs unit 
>> tests on the NET_2_0 profile.
>>
>> I think it's the new 2.0 UnhandledException behavior that was 
>> introduced a couple of days ago. It seems to break or to 
>> trigger a bug in NUnit, as it does in xsp:
>>
>> https://bugzilla.novell.com/show_bug.cgi?id=325507
> 
> I'm not sure what version of NUnit is being used. There have 

NUnit version 2.2.0 (console)

> definitely been bugs in past releases of NUnit that caused an 
> unhandled exception. Of course, the application under test
> can also be the source of unhandled exceptions.
> 
> Currently, NUnit uses the <legacyUnhandledExceptionPolicy>
> element so that unhandle exceptions don't cause it to terminate.
> A dialog box is displayed in the GUI showing information about
> the exception, including a guess as to what test caused it - it
> has to be a guess, since we don't know what created the thread
> that threw the exception. 

Thanks, <legacyUnhandledExceptionPolicy> did the trick. Some tests
are still failing but at least NUnit doesn't silently crash
anymore.

Robert




More information about the Mono-devel-list mailing list