On Wed, 8 Oct 2003, Stas Bekman wrote:

> Now, that makes much more sense, Randy. Looks like we are
> making a progress on this. Indeed as you said doing
> 't/TEST -run testname' doesn't affect the server side. But
> the way you start the server does.
>
> I suppose this has something to do with the win32
> implementation of the server startup.

I think that's exactly it ... The problem seems to
be in Apache::TestServer, which starts the server
with Win32::Process as
   Win32::Process::Create($obj, $httpd, "$cmd $one_process",
                          0,
                          NORMAL_PRIORITY_CLASS, ',');
The "0" in there determines if the process inherits the
calling processes handles or not. Changing it to "1"
(so it does inherit) seems to fix things, in that I
can now run everything (starting and stopping the server,
and running the tests) with the run_command_dup function,
and the STDs are all properly captured.

I'll work on reverting back to IPC::Run3 and seeing if
that works.

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to