shekharpro / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

StackOverflowException from mutual recursion in BaseTest.LocalId and IsLocalIdUniqueAmongSiblings #403

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We have a MbUnit v2 test assembly that uses the [CombinatorialTest] and 
[UsingFactories] attributes to run the same test on many different inputs. 
The [Factory] used by the test currently outputs 26,296 items to be tested.

We have been able to run these tests using the MbUnit GUI v2.4.197 and with 
the TestDriven.NET test runner when MbUnit is installed.

When we try to run the tests in this assembly with Icarus or with 
TestDriven.NET when Gallio v3.0.5 is installed, the Gallio host (i.e., 
Gallio.Host.x86.exe) crashes.

The Gallio host throws a StackOverflowException from 
BaseTest.IsLocalIdUniqueAmongSiblings (when calling parent.Children). The 
problem is caused by the mutual recursion between the BaseTest.LocalId 
getter and BaseTest.IsLocalIdUniqueAmongSiblings when parent.Children 
contains a large number of BaseTest instances.

Original issue reported on code.google.com by bgrain...@gmail.com on 11 Mar 2009 at 6:54

GoogleCodeExporter commented 8 years ago
Wow, that was topical!  I just looked at this function yesterday and found a 
serious
bug.  (Notice that it always returns true... *tsk*)

I'll take care of the mutual recursion problem next.

Original comment by jeff.br...@gmail.com on 11 Mar 2009 at 8:09

GoogleCodeExporter commented 8 years ago

Original comment by jeff.br...@gmail.com on 31 Mar 2009 at 3:53