Fault injection

Jeremy Allison jra at samba.org
Tue Mar 10 01:28:19 GMT 2009


On Sun, Mar 08, 2009 at 10:02:45AM -0800, Richard Sharpe wrote:
> Hi folks,
> 
> To allow me to develop unit tests for a particular class of problems
> (race conditions etc) I am thinking of adding fault injection macros
> to Samba. Has anyone done this yet?
> 
> My thinking is that, at least for those versions that still use
> smb.conf, it would be based around a global switch in config.h and an
> smb.conf parameter:
> 
>    fault injection = yes|no
>    fault injection point = "Injection Point Label"

Make sure this is only compiled in when #DEVELOPER
is true.

Jeremy.


More information about the samba-technical mailing list