compiler/glsl: close fd's in glcpp_test.py
authorDylan Baker <dylan@pnwbakers.com>
Thu, 19 Apr 2018 18:02:32 +0000 (11:02 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 23 Apr 2018 16:55:17 +0000 (09:55 -0700)
commitdbf5b772b3b5f962c3186dd0073146539ec0586b
tree7be89f9884da1a89cd357fd5a57038709684a49a
parent0e945fdf23bac5a62c15edfcbfd9d6ac4eee592f
compiler/glsl: close fd's in glcpp_test.py

I would have thought falling out of scope would allow the gc to collect
these, but apparently it doesn't, and this hits an fd limit on macos.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106133
Fixes: db8cd8e36771eed98eb638fd0593c978c3da52a9
       ("glcpp/tests: Convert shell scripts to a python script")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Vinson Lee <vlee@freedesktop.org>
src/compiler/glsl/glcpp/tests/glcpp_test.py