lib/fb: Assert, instead of silently failing, when creating fbs
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 19 Aug 2014 10:55:22 +0000 (11:55 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Thu, 21 Aug 2014 14:02:04 +0000 (15:02 +0100)
commit50166d2a20b72d008e5991a157a45cd9a77e4dea
tree07bb720608beedfacce8b71d9c1a9aacee7a5615
parent54397cafed108e54e98f109b8fd6cb4fdc729823
lib/fb: Assert, instead of silently failing, when creating fbs

We were either returning 0, or a negative value cast to an unsigned int
for errors and the clients of that API weren't exactly checking
anything.

We're in luck, we can take shortcuts in a testing library to just assert
when an expected error occurs.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
lib/igt_fb.c