]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Ensure dnstap_test returns SKIPPED_TEST_EXIT_CODE
authorMichal Nowak <mnowak@isc.org>
Mon, 15 Feb 2021 16:20:50 +0000 (17:20 +0100)
committerMichal Nowak <mnowak@isc.org>
Wed, 17 Feb 2021 11:15:18 +0000 (12:15 +0100)
Make sure lib/dns/tests/dnstap_test returns an exit code that indicates
a skipped test when dnstap is not enabled.

(cherry picked from commit c2863417035ecf815ecd87df1722c4728f9eaaed)

lib/dns/tests/dnstap_test.c

index fe8e140791ed294cf3e1b8aae83ad1196d4dcb09..186deab4c6324436446d4cae805d88589546294a 100644 (file)
@@ -382,7 +382,8 @@ main(void) {
 
        return (cmocka_run_group_tests(tests, NULL, NULL));
 #else  /* if HAVE_DNSTAP */
-       print_message("1..0 # Skip dnstap not enabled\n");
+       print_message("1..0 # Skipped: dnstap not enabled\n");
+       return (SKIPPED_TEST_EXIT_CODE);
 #endif /* HAVE_DNSTAP */
 }