Error in tempfile() using template /tmp//...

use basename to strip a fullpath self->{exename} in the perl testlib
Merge pull request #2 from rurban/jens-mega-patch

Error in tempfile() using template /tmp//...