summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-07-31 16:13:57 +0300
committerGurusamy Sarathy <gsar@cpan.org>1998-08-02 04:39:14 +0000
commit6087ac4414f58a8f56f41d3b670cd75f7a5e6936 (patch)
tree7462efad1880ee60b5108353620202d8ef691e4b /t
parented0d1bf7a96441c0ced673e08553f37b3d8b5613 (diff)
downloadperl-6087ac4414f58a8f56f41d3b670cd75f7a5e6936.tar.gz
better validation of SysV IPC availability
Message-Id: <199807311013.NAA28887@koah.research.nokia.com> Subject: Re: lib/ipc_sysv.t fails under FreeBSD 2.2.1 p4raw-id: //depot/maint-5.005/perl@1692
Diffstat (limited to 't')
-rwxr-xr-xt/lib/ipc_sysv.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/lib/ipc_sysv.t b/t/lib/ipc_sysv.t
index f74c5fa060..30ea48d999 100755
--- a/t/lib/ipc_sysv.t
+++ b/t/lib/ipc_sysv.t
@@ -28,6 +28,27 @@ my $sem;
$SIG{__DIE__} = 'cleanup'; # will cleanup $msg and $sem if needed
+# FreeBSD is known to throw this if there's no SysV IPC in the kernel.
+$SIG{SYS} = sub {
+ print STDERR <<EOM;
+SIGSYS caught.
+It may be that your kernel does not have SysV IPC configured.
+
+EOM
+ if ($^O eq 'freebsd') {
+ print STDERR <<EOM;
+You must have following options in your kernel:
+
+options SYSVSHM
+options SYSVSEM
+options SYSVMSG
+
+See config(8).
+EOM
+ }
+ exit(1);
+};
+
if ($Config{'d_msgget'} eq 'define' &&
$Config{'d_msgctl'} eq 'define' &&
$Config{'d_msgsnd'} eq 'define' &&