[lsb-discuss] lsb-test-perl FAILED

Stew Benedict stewb at linux-foundation.org
Mon Aug 18 04:26:09 PDT 2008

On Mon, 18 Aug 2008, hliu wrote:

> Hi, guys,
>   I'm testing lsb-test-perl recently. Here are what i've done"
>   1. Install lsb-test-perl:
>      rpm -ivh lsb-test-perl-3.2.1-1.noarch.rpm
>   2. Run the test script:
>      cd /opt/lsb/test/perl
>      ./run_tests
>   Error msg given out:
>         System perl version is: 5.10.0
>         Creating Unicode Character Database symlink...
>         Creating symlink to system blib.pm
>         Creating symlink to system constant.pm
>         Creating symlink to system strict.pm
>         Creating symlink to system Functions.pm
>         Can't locate Test/Harness/Straps.pm in @INC (@INC
>         contains: /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at Harness.pm line 6.
>         BEGIN failed--compilation aborted at Harness.pm line 6.
>         Compilation failed in require at harness line 12.
>         BEGIN failed--compilation aborted at harness line 12.
>         mv: cannot stat `t/tet_xres': No such file or directory
>         Journal file is results/0005e/journal
>   Seems it can't find Test/Harness/Straps.pm from the base path @INC,I
> ran "locate Straps.pm" and found Straps.pm is right
> under /usr/local/lib/perl5/site_perl/5.10.0/Test/Harness
>   Can somebody plz tell me what's going wrong with my test steps? thank
> u.

It's not anything wrong with what you're doing. The perl tests are 5.8.8 
based and have some pretty serious issues testing against 5.10.0.

We have a bug open on the spec (which also impacts the tests):


The spec currently says perl 5.8.X, with X >= 8. With more distributions 
moving to 5.10, we need to review this and come up with a test stragegy.

Stew Benedict
The Linux Foundation

More information about the lsb-discuss mailing list