On 12/19/05, Troy Denkinger <[EMAIL PROTECTED]> wrote: > The error is related to my pod.t which is, just as in the docs: > > use Test::More; > eval "use Test::Pod 1.14"; > plan skip_all => "Test::Pod 1.14 required for testing POD" if $@; > all_pod_files_ok(); > > Running this under my test harness, I get the error. Running this with > prove directly, I get no errors. I probably won't dig further into this > as it's not really worth the time. I'm guessing the problem is > Test::Harness::* related.
It is not Test::Harness related. Your custom harness is using File::Find which chdirs as it recurses. This means your test is running from within t/. It normally runs one level up. This means all_pod_files_ok() cannot see blib/ so it can't find any POD to check. The solution is to use the no_chdir flag to File::Find::find() so that your tests are run from the top level of your source directory, not inside t/.