Re: [PATCH 0/3] Test static functions

2013-12-11 Thread Artsiom Anikeyenka
Another neat option would be to include blah_blah.c files (with static function definitions u want to test) into blah_blah-test.c files. I like this solution more than macro redefinitions as it's simpler and lets you call actually static functions which makes testing stricter (just a little bit :)

Re: [PATCH 0/3] Test static functions

2013-12-09 Thread Bryce W. Harrington
On Thu, Dec 05, 2013 at 04:38:19PM +0100, Marek Ch wrote: > Hi, > > I did similar thing like is in Weston for testing static functions. Also, I > wrote > few wl_buffer unit tests. > I appreaciate any comments :) > > P. S.: based on mailing here: > http://lists.freedesktop.org/archives/wayland-de

[PATCH 0/3] Test static functions

2013-12-05 Thread Marek Ch
Hi, I did similar thing like is in Weston for testing static functions. Also, I wrote few wl_buffer unit tests. I appreaciate any comments :) P. S.: based on mailing here: http://lists.freedesktop.org/archives/wayland-devel/2013-November/012299.html Thanks, Marek Ch Marek Ch (3): wayland-p