tests: fix bad-buffer-test
authorMarek Chalupa <mchqwerty@gmail.com>
Fri, 11 Apr 2014 09:48:55 +0000 (11:48 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 17 Apr 2014 05:31:44 +0000 (22:31 -0700)
commit06f2fa1a609f5c263c7b8ea3cb8a967f9ecde338
tree79c4d5a2441098a709089196c1a2ac1869a7853e
parent9e9512f017e033c6a1719c0647cc73ec228c715d
tests: fix bad-buffer-test

bad-buffer-test is FAIL_TEST and every assert() (or even SIGSEGV signal)
make it pass. It shouldn't be so for example when assert() is invoked
when a client couldn't connect to display.

Make sure that only relevant asserts make the test pass
and the other make it fail (by returning 0)
tests/bad-buffer-test.c