[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/7] tests: avoid use of '-T' in shebang line to enable perl
From: |
Jim Meyering |
Subject: |
Re: [PATCH 4/7] tests: avoid use of '-T' in shebang line to enable perl taint mode |
Date: |
Thu, 30 Aug 2012 16:21:23 +0200 |
Stefano Lattarini wrote:
> * tests/rm/fail-eperm: Rename ...
> * tests/rm/fail-eperm.xpl: ... like this
> * tests/Makefile.am (TESTS): Adjust.
> (TEST_EXTENSIONS): New, list '.xpl'.
> (XPL_TEST_LOGS): New, run a perl test in tainted mode.
> * tests/shell-or-perl: Simplify this script: we no longer need to
> parse the shebang line and adjust the flags in the perl invocation
> accordingly.
> ---
> tests/Makefile.am | 8 +++++++-
> tests/rm/{fail-eperm => fail-eperm.xpl} | 0
> tests/shell-or-perl | 9 ++-------
> 3 files changed, 9 insertions(+), 8 deletions(-)
> rename tests/rm/{fail-eperm => fail-eperm.xpl} (100%)
Thanks for working on all of this.
This patch turns off -T (taint-checking) for all but one of the perl-based
test scripts. I think it is a valuable feature to leave enabled for as
many tests as possible. Do you have a good reason for turning it off?
I.e., why not define PL_LOG_COMPILER to use -T?