[qmtest] RemoteShellTarget on Windows
Mark Mitchell
mark at codesourcery.com
Thu Jun 24 19:56:42 UTC 2004
J C wrote:
>From what I understand of the, the classes
>TimeoutExecutable and RedirectedExecutable in
>executable.py are not used anywhere. Are they complete
>and usable?
>
>
Yes; they are used on both UNIX and Windows.
>Assuming that they are usable, could you outline what
>exactly would need to be done to use a subclass of
>RedirectedExecutable to allow ProcessTarget to work on
>Windows.
>
>
>
>Would the solution involve something like the
>following:
>
>
No, I don't think so. You can't use InitializeChild at all on Windows;
that's the problem. I think Nathaniel's idea is that
RedirectedExecutable contains logic that does the stuff that would
otherwise have to be done in InitializeChild before the Spawn on Windows
(using the Windows process set-up parameters). Look at how
_InitializeParent returns a value on Windows.
You want to do something similar in ProcessTarget, or somehow generalize
the stuff in RedirectedExecutable so that you can use it.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com
More information about the qmtest
mailing list