On Thu, 27 Jan 2011, Carl Worth wrote: > On Thu, 27 Jan 2011 15:03:49 +1000, Carl Worth <cworth at cworth.org> wrote: > > Just a few hours ago I attended an interesting talk by Rusty Russell in > > which he talks about a CCAN module he has written called failtest which > > provides an implementation of this kind of testing. > > I meant to include some links with the above. CCAN is here: > > http://ccan.ozlabs.org/ > > And the failtest module is here: > > http://ccan.ozlabs.org/info/failtest.html
Yes, this looks interesting. We may also want to use GCC function attribute "__attribute__ ((warn_unused_result))" to get warnings when the returned value is not checked. -Michal