Dirk80 has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I get warnings when I'm using "make test" with a ".t" file which contains e.g. the following line:
File::Spec->catpath("","/usr/bin");
Warnings
Use of uninitialized value $file in string ne at /usr/lib/perl/5.14/Fi +le/Spec/Unix.pm line 136. Use of uninitialized value $file in concatenation (.) or string at /us +r/lib/perl/5.14/File/Spec/Unix.pm line 144.
If I'm executing the ".t" file directly with perl "t/abc.t" or with prove instead of make test then I don't get these warnings.
What can I do? I don't want to have these warnings, when the test cases are executed with "make test".
Thank you
Dirk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: make test and File::Spec problems
by dulwar (Monk) on Jun 29, 2012 at 21:38 UTC | |
by Dirk80 (Pilgrim) on Jun 29, 2012 at 21:48 UTC | |
|
Re: make test and File::Spec problems
by chromatic (Archbishop) on Jun 29, 2012 at 20:43 UTC | |
by Dirk80 (Pilgrim) on Jun 29, 2012 at 21:21 UTC | |
by chromatic (Archbishop) on Jun 29, 2012 at 21:39 UTC |