go ahead and create an Apache::TestUtil with this kind of stuff. anything to reduce duplication in the .t's is good. as for cleaning up generated files and directories, the gendir, genfile stuff won't work because .t's are using a thawed config that is not saved (nor should it be). something that removes the files/directories for you with END or DESTROY would be good. that way they get cleaned up even if the test fails.
would also make things clear if all the TestUtil stuff gets prefixed with t_: t_open t_mkdir t_expect
