On Oct 28, 2008, at 5:42 PM, Abdulaziz Ghuloum wrote:

To test execution paths that react to error exit codes and
signals, which are not always easy to simulate by controlling
the child process behaviour.


You can always make a wrapper around these procedures that
returns a record with the interface that you like.

These are also known as "mock objects":

  http://en.wikipedia.org/wiki/Mock_Object

Aziz,,,

Reply via email to