testglib: test_file_functions: don't close fd if it's -1
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 12 Dec 2011 15:55:59 +0000 (15:55 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 14 Dec 2011 12:40:02 +0000 (12:40 +0000)
commita0f5e89aedd0fcd04164c35b1c77d194adfc698a
tree5602f7df322f488fd1eb778bb2bad80510fe91fe
parentfedc0cff518067c26bad698798e50069c765d1f3
testglib: test_file_functions: don't close fd if it's -1

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666115
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
tests/testglib.c