Re: Re: Two Tier, call_ str_ fix
"Mark Hahn" <[email protected]> Wed, 14 Jul 2004 15:06:08 -0700
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Mark Hahn wrote: > Anyone have any clue how to drive a console as a unit-under-test? > How do I replace a win32 process's stdin/stdout without the prcoess > code knowing about it? Never mind, google led me to the windows docs on how to create a child process and use pipes that the parent process can read and write to that the child process has for stdin and stdout. This is exactly what I need. We can write a Prothon test program to automate all the regression testing including testing the console. I'll write a function to run a child process and have the stdin and stdout of that process returned as textFiles. It can go in the system module. I'll let ben worry about how to do it in unix. :-)