From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6EB391F461 for ; Tue, 28 Nov 2023 14:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1701183388; bh=kQEmlbgJxZbC/HYLJnk9/melxXmgU20ZaU66mm3gxkk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=2pckA9beN6gO8re1Tzsi4IwA3nvZ+OimGWdpLjavbDr5eoec0jm0uL00ZRR9jC1dB Q5zLy6czLEvBGHvaxuB8X52d6XVeM5v+5QIfT/LKe92ZxWdhsnmbLs7S+L3iDvwXei kX1H562p4jJdkZGgkfi3p4FdrZhlR8EUVoYibQbY= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 02/14] t/cindex*: require SCM_RIGHTS for these tests Date: Tue, 28 Nov 2023 14:56:15 +0000 Message-ID: <20231128145628.1455176-3-e@80x24.org> In-Reply-To: <20231128145628.1455176-1-e@80x24.org> References: <20231128145628.1455176-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Code search will require SCM_RIGHTS, and Inline::C on BSDs probably isn't too onerous a dependency for new features as all the ones I've tested have it packaged. Furthermore, requiring SCM_RIGHTS isn't far off since OpenBSD's Perl is patched to route the `syscall' perlop through libc[1], while NetBSD[2] and FreeBSD[3] actually do strive for backwards compatibility. We'd just need to use the numbers and not rely on syscall.ph shipped with Perl since the macro names themselves are unstable. [1] https://cvsweb.openbsd.org/src/gnu/usr.bin/perl/gen_syscall_emulator.pl [2] https://www.netbsd.org/docs/internals/en/chap-processes.html#syscall_versioning [3] https://wiki.freebsd.org/AddingSyscalls#Backward_compatibily --- t/cindex-join.t | 2 +- t/cindex.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/cindex-join.t b/t/cindex-join.t index 2836eb6c..ac90cd64 100644 --- a/t/cindex-join.t +++ b/t/cindex-join.t @@ -12,7 +12,7 @@ use autodie; use File::Spec; $ENV{TEST_REMOTE_JOIN} or plan skip_all => 'TEST_REMOTE_JOIN unset'; local $ENV{TAIL_ALL} = $ENV{TAIL_ALL} // 1; # while features are unstable -require_mods(qw(json Xapian DBD::SQLite)); +require_mods(qw(json Xapian DBD::SQLite +SCM_RIGHTS)); my @code = qw(https://80x24.org/mwrap-perl.git https://80x24.org/mwrap.git); my @inboxes = qw(https://80x24.org/mwrap-public 2 inbox.comp.lang.ruby.mwrap diff --git a/t/cindex.t b/t/cindex.t index 1a9e564a..261945bf 100644 --- a/t/cindex.t +++ b/t/cindex.t @@ -6,7 +6,7 @@ use PublicInbox::TestCommon; use Cwd qw(getcwd abs_path); use List::Util qw(sum); use autodie qw(close open rename); -require_mods(qw(json Xapian)); +require_mods(qw(json Xapian +SCM_RIGHTS)); use_ok 'PublicInbox::CodeSearchIdx'; use PublicInbox::Import; my ($tmp, $for_destroy) = tmpdir();