tests: move the closedir() call
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 23 Feb 2017 10:51:00 +0000 (11:51 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 23 Feb 2017 10:51:00 +0000 (11:51 +0100)
commit2c338f198e41bb7383df44ef207c809ab2e2d43f
tree6b9b6caee7e18bfac1a3a0d66cfcad9c898c72cf
parenta29f20ae8a9f45ad55c4aa64bd4f2a415608609f
tests: move the closedir() call

Close the directory immediately after the loop iterating over
its entries ends.

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