Perhaps it would be better to "mock" the filehandle by commandeering the open & close methods. Then open could increment a variable, and close could decrement it. At the end of your test, the variable should be zero. I'm sure there's a way to intercept the core functions, but I don't know how to do it, so I can't offer any assistance on the actual implementation.
...roboticusIn reply to Re: How to test for open file handles?
by roboticus
in thread How to test for open file handles?
by jdrago_999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |