[qmtest] Resource Destruction Order
Mark Mitchell
mark at codesourcery.com
Thu Feb 5 07:08:47 UTC 2004
Scott Lowrey wrote:
> I have a test that depends on resource A. Resource A in turn depends
> on resource B.
>
> When the test is run, resource B is set up first, followed by resource
> A. When the test finishes, resource B is getting torn down *before*
> resource A, causing resource A's CleanUp to fail.
>
> The order of set up seems logical. The teardown order does not, yet I
> have a different test where dependent resources were torn down
> correctly. Is this random? Shouldn't resource creation and
> destruction be strictly ordered according to dependencies?
Yes -- this is a bug. We'll fix that.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com
More information about the qmtest
mailing list