about summary refs log tree commit homepage
path: root/t/cmd_ipc.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cmd_ipc.t')
-rw-r--r--t/cmd_ipc.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/cmd_ipc.t b/t/cmd_ipc.t
index dd90fa2a..75697a15 100644
--- a/t/cmd_ipc.t
+++ b/t/cmd_ipc.t
@@ -1,5 +1,5 @@
 #!perl -w
-# Copyright (C) 2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use v5.10.1;
@@ -142,4 +142,15 @@ SKIP: {
         }
 }
 
+SKIP: {
+        skip 'not Linux', 1 if $^O ne 'linux';
+        require_ok 'PublicInbox::Syscall';
+        $send = PublicInbox::Syscall->can('send_cmd4') or
+                skip 'send_cmd4 not defined for arch';
+        $recv = PublicInbox::Syscall->can('recv_cmd4') or
+                skip 'recv_cmd4 not defined for arch';
+        $do_test->(SOCK_STREAM, 0, 'PP Linux stream');
+        $do_test->($SOCK_SEQPACKET, MSG_EOR, 'PP Linux seqpacket');
+}
+
 done_testing;