On Fri, 28 May 2010 01:08:27 +1000, Stewart Smith <[email protected]> 
wrote:
> I think unit tests for drizzled/atomics.h would be great.
> 
> namely because I just found a bug in them on some of our build hosts
> (fetch_and_increment() doesn't work).
> 
> It should also be fairly easy to write real unit tests for these as they
> don't poke everywhere in the server.

I have one that I'll be pushing up fairly shortly, but it only directly
tests the pthreads implementation. A good next step would be to take it
and make sure it also tests the native implementation (gcc/sunstudio)
appropriately when we build with it.

-- 
Stewart Smith

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to