in reply to mocking or trapping system calls

wu-lee:

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.

...roboticus