$ prove -I../5001/lib -v fprmtree-trad.t 
fprmtree-trad.t .. 
Perl version:       5.026000
File::Path version: 0.5001
subdir name:        22853_base
ok 1 - created 1 subdirectory
ok 2 - Directory /tmp/22853_base exists
ok 3 - Created 8 subdirectories
ok 4 - Directory /tmp/22853_base/foo_22853_0000 exists, starts life as 0775
ok 5 - Able to create file /tmp/22853_base/foo_22853_0000/a
ok 6 - Directory /tmp/22853_base/foo_22853_0100 exists, starts life as 0775
ok 7 - Able to create file /tmp/22853_base/foo_22853_0100/a
ok 8 - Directory /tmp/22853_base/foo_22853_0200 exists, starts life as 0775
ok 9 - Able to create file /tmp/22853_base/foo_22853_0200/a
ok 10 - Directory /tmp/22853_base/foo_22853_0300 exists, starts life as 0775
ok 11 - Able to create file /tmp/22853_base/foo_22853_0300/a
ok 12 - Directory /tmp/22853_base/foo_22853_0400 exists, starts life as 0775
ok 13 - Able to create file /tmp/22853_base/foo_22853_0400/a
ok 14 - Directory /tmp/22853_base/foo_22853_0500 exists, starts life as 0775
ok 15 - Able to create file /tmp/22853_base/foo_22853_0500/a
ok 16 - Directory /tmp/22853_base/foo_22853_0600 exists, starts life as 0775
ok 17 - Able to create file /tmp/22853_base/foo_22853_0600/a
ok 18 - Directory /tmp/22853_base/foo_22853_0700 exists, starts life as 0775
ok 19 - Able to create file /tmp/22853_base/foo_22853_0700/a
ok 20 - chmod /tmp/22853_base/foo_22853_0000 to 0000
ok 21 - Directory /tmp/22853_base/foo_22853_0000 changed to 0000
ok 22 - chmod /tmp/22853_base/foo_22853_0100 to 0100
ok 23 - Directory /tmp/22853_base/foo_22853_0100 changed to 0100
ok 24 - chmod /tmp/22853_base/foo_22853_0200 to 0200
ok 25 - Directory /tmp/22853_base/foo_22853_0200 changed to 0200
ok 26 - chmod /tmp/22853_base/foo_22853_0300 to 0300
ok 27 - Directory /tmp/22853_base/foo_22853_0300 changed to 0300
ok 28 - chmod /tmp/22853_base/foo_22853_0400 to 0400
ok 29 - Directory /tmp/22853_base/foo_22853_0400 changed to 0400
ok 30 - chmod /tmp/22853_base/foo_22853_0500 to 0500
ok 31 - Directory /tmp/22853_base/foo_22853_0500 changed to 0500
ok 32 - chmod /tmp/22853_base/foo_22853_0600 to 0600
ok 33 - Directory /tmp/22853_base/foo_22853_0600 changed to 0600
ok 34 - chmod /tmp/22853_base/foo_22853_0700 to 0700
ok 35 - Directory /tmp/22853_base/foo_22853_0700 changed to 0700
Can't remove directory /tmp/22853_base/foo_22853_0000: Directory not empty at fprmtree-trad.t line 24.
not ok 36 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0000

#   Failed test 'rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0000'
#   at fprmtree-trad.t line 25.
#          got: '0'
#     expected: '2'
Can't remove directory /tmp/22853_base/foo_22853_0100: Directory not empty at fprmtree-trad.t line 24.
not ok 37 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0100

#   Failed test 'rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0100'
#   at fprmtree-trad.t line 25.
#          got: '0'
#     expected: '2'
Can't remove directory /tmp/22853_base/foo_22853_0200: Directory not empty at fprmtree-trad.t line 24.
not ok 38 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0200

#   Failed test 'rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0200'
#   at fprmtree-trad.t line 25.
#          got: '0'
#     expected: '2'
Can't remove directory /tmp/22853_base/foo_22853_0300: Directory not empty at fprmtree-trad.t line 24.
not ok 39 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0300

#   Failed test 'rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0300'
#   at fprmtree-trad.t line 25.
#          got: '0'
#     expected: '2'
Can't unlink file /tmp/22853_base/foo_22853_0400/a: Permission denied at fprmtree-trad.t line 24.
Can't remove directory /tmp/22853_base/foo_22853_0400: Directory not empty at fprmtree-trad.t line 24.
not ok 40 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0400

#   Failed test 'rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0400'
#   at fprmtree-trad.t line 25.
#          got: '0'
#     expected: '2'
Can't unlink file /tmp/22853_base/foo_22853_0500/a: Permission denied at fprmtree-trad.t line 24.
Can't remove directory /tmp/22853_base/foo_22853_0500: Directory not empty at fprmtree-trad.t line 24.
not ok 41 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0500

#   Failed test 'rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0500'
#   at fprmtree-trad.t line 25.
#          got: '0'
#     expected: '2'
Can't unlink file /tmp/22853_base/foo_22853_0600/a: Permission denied at fprmtree-trad.t line 24.
Can't remove directory /tmp/22853_base/foo_22853_0600: Directory not empty at fprmtree-trad.t line 24.
not ok 42 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0600

#   Failed test 'rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0600'
#   at fprmtree-trad.t line 25.
#          got: '0'
#     expected: '2'
ok 43 - rmtree (traditional) removed 2 items: file; directory /tmp/22853_base/foo_22853_0700
1..43
# Looks like you failed 7 tests of 43.
Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/43 subtests 

Test Summary Report
-------------------
fprmtree-trad.t (Wstat: 1792 Tests: 43 Failed: 7)
  Failed tests:  36-42
  Non-zero exit status: 7
Files=1, Tests=43,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.04 cusr  0.00 csys =  0.06 CPU)
Result: FAIL

