in reply to Re: Failed test of Net::SNTP::Client module
in thread Failed test of Net::SNTP::Client module

Hello stevieb,

This is was my first thought also, to add the t/ indicate the directory. I was not quite sure if this was the correct way of solving the problem or not but it seems it worked fine. The only modification that I had to apply was to put the keys in correct order also. Any way details seems to be working just fine. ;)

Thank you for your time and effort.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^3: Failed test of Net::SNTP::Client module
by stevieb (Canon) on Jul 06, 2015 at 14:42 UTC

    Indeed, it was the correct fix. The test itself was faulty in this case. I do see now that you were using the script name as a key in the hash ($0 => {), so from the module's perspective when running the tests within the root dir, it would for certain have the t/ prepended to it.

      OMG!!!!! You right!!!!! I completely ignored this factor. I assumed since I am executing the script from inside the directory why not working outside of the directory. Stupidity... :P

      Thanks again it makes absolute sense.

      Seeking for Perl wisdom...on the process of learning...not there...yet!