Steve Hay wrote: [...]
Would it be possible to change TestSmoke to create a TestServer object and call the start() and stop() methods on it, rather than using "t/TEST -start" and "t/TEST -stop", or is that a really stupid question?
As someone said, there are no stupid questions ;)
Sure, we can do that, but what would be the gain? TestSmoke really doesn't want to be complicated and wants to delegate all control to TestServer. All it does is parsing TestRun's output. So if anything that needs to be fixed is TestServer. TestSmoke should just be able to say, ok start the server, and then please run this test, and then please stop (without ever needing to repeat the command, "I said stop already!").
If you suggest the same thing for TestRun/Server, remember that anybody can issue t/TEST -start/-stop from the outside, rendering the object approach useless (since -stop it won't have an access to the object created by -start, as the request is coming from theoutside)
p.s. I'd let you guys figure it out on win32 and once you are happy we will see how to make that behavior similar on other platforms. Of course if you need to change things in the non-win32 area, please do so. As mentioned before the left over pid file happens on unix as well, but it's not a critical issue there, since unices rotate pids and don't immediately re-use them.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
