From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5EF7A1F487 for ; Sun, 29 Mar 2020 19:32:31 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/filter_rubylang.t: avoid warning for non-word prefix Date: Sun, 29 Mar 2020 19:32:31 +0000 Message-Id: <20200329193231.10455-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: The "-" was never supported by Xapian in the prefix, but it could still be used to make documentation and URLs more readable in certain cases. Fixes: 7909c5f7439777e3 ("altid: warn about non-word prefixes") --- t/filter_rubylang.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/filter_rubylang.t b/t/filter_rubylang.t index 62b3affe..8215b6f1 100644 --- a/t/filter_rubylang.t +++ b/t/filter_rubylang.t @@ -27,7 +27,12 @@ SKIP: { use_ok 'PublicInbox::Inbox'; my ($git_dir, $for_destroy) = tmpdir(); is(mkdir("$git_dir/public-inbox"), 1, "created public-inbox dir"); - my $altid = [ "serial:ruby-core:file=msgmap.sqlite3" ]; + my $altid = [ + # 'serial:ruby-core:file=msgmap.sqlite3' can be used here + # for documentation purposes, but Xapian ignores everything + # up to and including the '-' + 'serial:core:file=msgmap.sqlite3' + ]; my $ibx = PublicInbox::Inbox->new({ inboxdir => $git_dir, altid => $altid }); $f = PublicInbox::Filter::RubyLang->new(-inbox => $ibx);