diff options
author | Jess Robinson <castaway@desert-island.me.uk> | 2013-04-19 12:08:34 +0100 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-18 12:11:46 -0300 |
commit | 7139292da4149c622911fa11dab86ff67b94bce7 (patch) | |
tree | 412fd6fc6f2d51e4adc0b44fd8cc13cca6fbace3 | |
parent | ce197e4f836a0f650dfe3046205cf35fcea8260a (diff) | |
download | perl-7139292da4149c622911fa11dab86ff67b94bce7.tar.gz |
t/op/taint.t: Skip crypt tests if !d_crypt
-rw-r--r-- | t/op/taint.t | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/t/op/taint.t b/t/op/taint.t index b521408fc5..1420a38e8e 100644 --- a/t/op/taint.t +++ b/t/op/taint.t @@ -1997,18 +1997,21 @@ foreach my $ord (78, 163, 256) { } { - # 59998 - sub cr { my $x = crypt($_[0], $_[1]); $x } - sub co { my $x = ~$_[0]; $x } - my ($a, $b); - $a = cr('hello', 'foo' . $TAINT); - $b = cr('hello', 'foo'); - is_tainted($a, "tainted crypt"); - isnt_tainted($b, "untainted crypt"); - $a = co('foo' . $TAINT); - $b = co('foo'); - is_tainted($a, "tainted complement"); - isnt_tainted($b, "untainted complement"); + SKIP: { + skip 'No crypt function, skipping crypt tests', 4 if(!$Config{d_crypt}); + # 59998 + sub cr { my $x = crypt($_[0], $_[1]); $x } + sub co { my $x = ~$_[0]; $x } + my ($a, $b); + $a = cr('hello', 'foo' . $TAINT); + $b = cr('hello', 'foo'); + is_tainted($a, "tainted crypt"); + isnt_tainted($b, "untainted crypt"); + $a = co('foo' . $TAINT); + $b = co('foo'); + is_tainted($a, "tainted complement"); + isnt_tainted($b, "untainted complement"); + } } { |