Skip to content

Commit

Permalink
Skip taint tests when -DSILENT_NO_TAINT_SUPPORT is enabled.
Browse files Browse the repository at this point in the history
This should be reverted before merge, as Test-Harness is dual-life CPAN-first
  • Loading branch information
DrHyde committed Mar 26, 2023
1 parent bca1c72 commit d4fa19e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cpan/Test-Harness/t/compat/test-harness-compat.t
Expand Up @@ -18,7 +18,9 @@ use Test::Harness qw(execute_tests);
local $ENV{HARNESS_PERL_SWITCHES};

my $TEST_DIR = 't/sample-tests';
my $NoTaintSupport = exists($Config{taint_support}) && !$Config{taint_support};
my $NoTaintSupport =
(exists($Config{taint_support}) && !$Config{taint_support}) ||
$Config{ccflags} =~ /-DSILENT_NO_TAINT_SUPPORT/;

my @test_list = qw(descriptive die die_head_end die_last_minute duplicates
head_end head_fail inc_taint junk_before_plan lone_not_bug
Expand Down
4 changes: 3 additions & 1 deletion cpan/Test-Harness/t/regression.t
Expand Up @@ -22,7 +22,9 @@ use TAP::Parser;

my $IsVMS = $^O eq 'VMS';
my $IsWin32 = $^O eq 'MSWin32';
my $NoTaintSupport = exists($Config{taint_support}) && !$Config{taint_support};
my $NoTaintSupport =
(exists($Config{taint_support}) && !$Config{taint_support}) ||
$Config{ccflags} =~ /-DSILENT_NO_TAINT_SUPPORT/;

my $SAMPLE_TESTS = File::Spec->catdir(
File::Spec->curdir,
Expand Down

0 comments on commit d4fa19e

Please sign in to comment.