diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-19 17:40:20 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-19 17:40:20 +0000 |
commit | b9d1c4398df61d65824ee27ce4615ba7484e4d23 (patch) | |
tree | 22a61a4ed8a272f31d99b9764aad9049864b0a06 /t | |
parent | 5779f8bc29deca6890dba6e4c3258779d3ec7c1e (diff) | |
download | perl-b9d1c4398df61d65824ee27ce4615ba7484e4d23.tar.gz |
taint.t shouldn't fail where IPC::SysV unavailable
p4raw-id: //depot/perl@5830
Diffstat (limited to 't')
-rwxr-xr-x | t/op/taint.t | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/t/op/taint.t b/t/op/taint.t index c32a1c41fb..acc1c3d280 100755 --- a/t/op/taint.t +++ b/t/op/taint.t @@ -24,6 +24,11 @@ BEGIN { $ENV{PATH} = $ENV{PATH}; $ENV{TERM} = $ENV{TERM} ne ''? $ENV{TERM} : 'dummy'; } + if ($Config{d_shm} || $Config{d_msg}) { + require IPC::SysV; + IPC::SysV->import(qw(IPC_PRIVATE IPC_RMID IPC_CREAT S_IRWXU + S_IRWXG S_IRWXO)); + } } my $Is_VMS = $^O eq 'VMS'; @@ -609,8 +614,7 @@ else { # test shmread { if ($Config{d_shm}) { - use IPC::SysV qw(IPC_PRIVATE IPC_RMID S_IRWXU S_IRWXG S_IRWXO); - + no strict 'subs'; my $sent = "foobar"; my $rcvd; my $size = 2000; @@ -644,8 +648,7 @@ else { # test msgrcv { if ($Config{d_msg}) { - use IPC::SysV qw(IPC_PRIVATE IPC_RMID IPC_CREAT S_IRWXU); - + no strict 'subs'; my $id = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); my $sent = "message"; |