Syntactic Confectionery Delight | |
PerlMonks |
Test::Cmd and forkingby dragonchild (Archbishop) |
on Jul 13, 2004 at 12:10 UTC ( [id://373937]=perlquestion: print w/replies, xml ) | Need Help?? |
dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
I'm using Test::Cmd to test a daemon. Part of this testing requires forking off a process in the test scripts to simulate a file growing (as through FTP). I've had the darndest time figuring out how to get this to work with Test::Cmd, because the child process would clean up the environment when it exited. I've figured out a solution, which is pop @{$test->{cleanup}}; in the child process. However, that came about by reading the source.
Anyone familiar enough with the API to provide a non-internals-mucking solution to this? ------
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose I shouldn't have to say this, but any code, unless otherwise stated, is untested
Back to
Seekers of Perl Wisdom
|
|