[qmtest] transition from 2.0.3 to 2.3 -- missing chdir problem
Allyn Dimock
dimock at cag.csail.mit.edu
Wed Oct 12 12:33:33 UTC 2005
On Tue, 11 Oct 2005, Mark Mitchell wrote:
> 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.
>
Thank you for pointing out the interaction of chdir and threads: that is
likely the reason that I was getting intermittent problems using a
thread target in version 2.0.3
-- Allyn Dimock
More information about the qmtest
mailing list