TestDUChain::testImportStructure() randomness
David Nolden
zwabel+kde at gmail.com
Thu Jun 5 17:13:41 UTC 2008
On Thursday 05 June 2008 18:47:13 Manuel Breugelmans wrote:
> I observed odd behaviour for this test command. It would pass when running
> the full duchain test case but fail when run in isolation. Whats more,
> always on the exact same cycle+sub-cycles. Not sure if this on purpose (to
> make it a bit reproducable) but there's no call to srand in there ...
> debian randomness ;)
Yep I didn't call srand() so when something fails it is reproducible.
> With proper initilization and a slightly higher cycle count (100) this test
> starts failing. I couldnt quite figure out why though, might be something
> trivial.
Ok that needs some debugging then. But it's actually a good thing, because
I've noticed a rare problem in that area, and now know that the test can
reproduce it.
Greetings, David
More information about the KDevelop-devel
mailing list