testsuite: add trap to opendir() including tests
3 files changed