I thought creating a "mock" of this same program that expects an input and just print some output....The mock that I created is a very simple C program that would need to be compiled before running the tests using a Makefile already available.
If all the mock program needs to do is accept some input and produce some output, why woudl you use C to write that?
I use Perl one-liners for similar purposes al the time:
my $mockedReturn = `perl -E"say 'fred' if $ARGV[0] eq 'bill'`;
In reply to Re: CPAN automated tests for IPC
by BrowserUk
in thread CPAN automated tests for IPC
by glasswalk3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |