2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Use SKIPPED_TEST_EXIT_CODE consistently

Commit fa505bfb0e7623d7cfc94ae15a0246ae71000904 omitted two unit tests
while introducing the SKIP_TEST_EXIT_CODE preprocessor macro.  Fix the
outliers to make use of SKIP_TEST_EXIT_CODE consistent across all unit
tests.  Also make sure lib/dns/tests/dnstap_test returns an exit code
that indicates a skipped test when dnstap is not enabled.
This commit is contained in:
Michal Nowak 2021-02-15 17:20:50 +01:00
parent 2be0b5b90e
commit c286341703
No known key found for this signature in database
GPG Key ID: 24A3E8463AEE5E56
3 changed files with 4 additions and 3 deletions

View File

@ -382,7 +382,8 @@ main(void) {
return (cmocka_run_group_tests(tests, NULL, NULL)); return (cmocka_run_group_tests(tests, NULL, NULL));
#else /* if HAVE_DNSTAP */ #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 */ #endif /* HAVE_DNSTAP */
} }

View File

@ -1765,7 +1765,7 @@ main(void) {
int int
main(void) { main(void) {
printf("1..0 # Skipped: cmocka not available\n"); printf("1..0 # Skipped: cmocka not available\n");
return (0); return (SKIPPED_TEST_EXIT_CODE);
} }
#endif /* if HAVE_CMOCKA */ #endif /* if HAVE_CMOCKA */

View File

@ -893,7 +893,7 @@ main(void) {
int int
main(void) { main(void) {
printf("1..0 # Skipped: cmocka not available\n"); printf("1..0 # Skipped: cmocka not available\n");
return (0); return (SKIPPED_TEST_EXIT_CODE);
} }
#endif /* if HAVE_CMOCKA */ #endif /* if HAVE_CMOCKA */