Ok, so test.exe is doing something you don't want -- not much you can do about it from perl
You can use Proc::Background to attempt to determine when it has hanged , and kill it if its been too long, instead of manually killing it, other than that, I've got no recommendations (debug test.exe sounds, well , like it sounds):)
| [reply] |
Well the thing here is the perl code , or application test.exe works fine when i executed the automation perl code having TCLs without "typerperf.exe".
The application runs fine when i use to tun each test case individually.
In short test.exe works fine.
Also if we consider typeperf.exe as a background process here , i can see that when test.exe hangs , typeperf-exe isn't executed or shown in task manager.
Again this scenario is random in sense that test.exe hangs at say third iteration or can hang at 5th or even in first iteration itself.
It is this randomness that is not allowing me to locate the problem.
The "debug" tht i came up is with observing the return value of SYSTEM when i manually kill test.exe which is 1 (and not 0 which is for successful fork and wait).
So i am assuming the problem is in SYSTEM function and/or its execution.
I have given a try using autoflush , but it didnt work out.
So any furthur help ????
| [reply] |