https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8508

            Bug ID: 8508
           Summary: t/sa_compile.t fails when required modules are only on
                    PERL5LIB
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Regression Tests
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

Created attachment 6210
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=6210&action=edit
run the installed scripts through $perl_cmd -T

t/SATest.pm sets up $perl_cmd as the perl command to use for any perl scripts
that the tests run, to work around problems running in taint mode.
t/sa_compile.t does not use it to run the installed spamassassin and sa-compile
scripts. The test fails when a required module is found only through PERL5LIB.

The attached patch runs the installed scripts through "$perl_cmd -T". The test
sets TEST_PERL_TAINT=no, so $perl_cmd has no -T of its own, and perl refuses to
run a script with -T on its #! line unless -T is on the command line too.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to