libusbgx: tests: Add wrappers for safe allocation
authorPawel Szewczyk <p.szewczyk@samsung.com>
Thu, 30 Apr 2015 11:50:57 +0000 (13:50 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 20:45:36 +0000 (21:45 +0100)
commit718b86e50fbb3279bd2d7af15fcb2f4cab0db986
tree6634d81e75c947d88901bec84991c9643fba8289
parentcc4e00b0b31ad82269d7872f358cc464436b2299
libusbgx: tests: Add wrappers for safe allocation

Every allocation here requires checking if it was successful and
storing it on queue to be freed later. Now it can all be done by single
function call.

Change-Id: I06c0099d0b44cb030b6ab8e338ccd58e078a92ac
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
tests/test.c
tests/usbg-test.c
tests/usbg-test.h