tests: add a new cleanup macro
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 22 Feb 2018 20:21:56 +0000 (21:21 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 22 Feb 2018 20:21:56 +0000 (21:21 +0100)
commit5c5a4ca9b3b58495aa3578235ad94bab22f3c602
tree56246791ed18b77cb0e4213aefe7a663ed5ca226
parent6b6bed27cc7b31d87c5dfc9792f4f7165d73a1f9
tests: add a new cleanup macro

The most commonly used cleanup attribute is the one used for automatic
closing of GPIO chips. For brevity: hide the long TEST_CLEANUP(...)
invocation behind a shorter TEST_CLEANUP_CHIP macro.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/gpiod-test.h
tests/tests-chip.c
tests/tests-event.c
tests/tests-gpioinfo.c
tests/tests-iter.c
tests/tests-line.c