]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/xap_helper: bail on build failure if TEST_XH_CXX_ONLY
authorEric Wong <e@80x24.org>
Thu, 27 Feb 2025 00:08:19 +0000 (00:08 +0000)
committerEric Wong <e@80x24.org>
Tue, 4 Mar 2025 07:54:13 +0000 (07:54 +0000)
We shouldn't transparently fall back to the Perl bindings test
on build failures if the tester wants to explicitly test the C++
implementation.

t/xap_helper.t

index e87c9da8ec8cdbe59fe150d36963d790b11bd61c..da26b9a86fe240ae6ff6121d2b8a9fdd9e5e60e6 100644 (file)
@@ -189,7 +189,10 @@ SKIP: {
                require PublicInbox::XapHelperCxx;
                PublicInbox::XapHelperCxx::cmd();
        };
-       skip "XapHelperCxx build: $@", 1 if $@;
+       if ($@) {
+               xbail "C++ build failed: $@" if $ENV{TEST_XH_CXX_ONLY};
+               skip "XapHelperCxx build: $@", 1;
+       }
 
        @NO_CXX = $ENV{TEST_XH_CXX_ONLY} ? (0) : (0, 1);
        my $ar = $test->(@$cmd, '-j0');