[LTP] [PATCH] lib/tst_rmdir.c: close TESTDIR files before rmobj()
Cyril Hrubis
chrubis@suse.cz
Thu Mar 17 17:15:46 CET 2016
Hi!
> NFS creates special .nfs* files when test file was removed and
> left open. In that case, tst_rmdir() fails to remove test dirs:
This is the reason why we state in test writing guidelines that all open
file descriptors should be closed in the cleanup() function.
I'm not sure that it's a good idea to close them in the library this
way.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list