[qmtest] transition from 2.0.3 to 2.3 -- missing chdir problem

Mark Mitchell mark at codesourcery.com
Tue Oct 11 23:26:37 UTC 2005


Allyn Dimock wrote:

>   The extensions to qm.test.test.Test that I had inherited depended on
> code that was removed between 2.0.3 and 2.3:  the chdir to the directory
> containing the individual test.  I haven't been able to track through
> the QMTest 2.0.3 code thoroughly yet, but it seems that it must be the
> chdir that has been removed from the qm.test.database.ItemDescriptor
> __Execute method.

That's very plausible.  The chdir was removed because its not safe to do
chdir in multi-threaded programs, and QMTest can provide parallelism via
threading.  If your test class is invoking an external program, you can
have that external program do the chdir, if you like.

> this information through the context.  However, the manual in section 4.3
> has a bad link to internal documentation on context -- which provoked
> enough frustration that I decided to send out this message before
> instumenting my code to dump out context and see if the test directory
> can be found...

Thank you for the bug report.  We're working on fixing that link.  Here
is the current internals manual, which is a little more current than
2.3, but should still be useful to you:

http://www.codesourcery.com/public/qmtest/qm-snapshot/doc/qm/index.html

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304



More information about the qmtest mailing list