Subject: | t/Path_root.t fails to remove temporary directories |
When testing File-Path as root, we run t/Path_root.t. This file manually creates several directories beneath the current working directory. However, the file does not clean these up before exiting. This leaves the working directory looking something like this:
#####
root@localhost:/home/jkeenan/gitwork/File-Path # ls -l
total 68
drwxr-xr-x 8 jkeenan wheel 512 Mar 17 09:01 .git
-rw-r--r-- 1 jkeenan wheel 200 Mar 8 11:00 .gitignore
-rw-r--r-- 1 jkeenan wheel 443 Mar 8 11:00 .travis.yml
-rw-r--r-- 1 jkeenan wheel 9428 Mar 14 08:44 Changes
-rw-r--r-- 1 jkeenan wheel 207 Mar 8 11:00 MANIFEST
-rw-r--r-- 1 jkeenan wheel 352 Mar 8 11:00 MANIFEST.SKIP
-rw-r--r-- 1 jkeenan wheel 600 Mar 8 11:00 META.yml
-rw-r--r-- 1 jkeenan wheel 1140 Mar 8 11:00 Makefile.PL
-rw-r--r-- 1 jkeenan wheel 1878 Mar 14 08:44 README
lrwxr-xr-x 1 jkeenan wheel 6 Mar 8 11:00 README.md -> README
drwxr-xr-x 8 root wheel 512 Mar 17 08:55 blib
drwxr-xr-x 3 jkeenan wheel 512 Mar 8 11:00 lib
drwxr-xr-x 2 jkeenan wheel 512 Mar 17 09:02 t
drwxr-xr-x 5 root wheel 512 Mar 17 08:55 test-58cbdcd1-441-39ba
drwxr-xr-x 5 root wheel 512 Mar 17 08:57 test-58cbdd2c-450-8694
drwxr-xr-x 2 jkeenan wheel 512 Mar 8 11:00 xt
#####
Should you then switch back to running as a regular user, certain tests in t/Path.t will fail.
A pull request will be created to address this.
Thank you very much.
Jim Keenan