Perhaps you could replace your path variable for your tests. Remove all directories containing 'sensitive' commands, and then write a program for each command you'll call with system that simply prints some boilerplate for you to test against.
...roboticusIn reply to Re: mocking or trapping system calls
by roboticus
in thread mocking or trapping system calls
by wu-lee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |