tests: new cleanup helper
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 22 Feb 2017 09:55:24 +0000 (10:55 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 22 Feb 2017 09:55:24 +0000 (10:55 +0100)
commitb9037255f5663e9ab864fe1a614fb9d0751ae46f
tree6198499e2323448dd26c628541d82cdcabbce2fc
parenta12b50f8fa16c7683b05a64480e1ef0bced082db
tests: new cleanup helper

Add a new cleanup helper which releases a previously requested GPIO
line when a gpiod_line pointer used with GU_CLEANUP() goes out of
scope.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/unit/gpiod-unit.c
tests/unit/gpiod-unit.h