]> eyrie.org Git - kerberos/krb5-strength.git/commitdiff
Fix tests when built without CrackLib
authorRuss Allbery <eagle@eyrie.org>
Sun, 17 May 2020 01:55:04 +0000 (18:55 -0700)
committerRuss Allbery <eagle@eyrie.org>
Sun, 17 May 2020 01:55:04 +0000 (18:55 -0700)
The count of skipped tests when compiled without CrackLib support
was off by one.

tests/plugin/mit-t.c

index b8920ef7a3edc773ba7a6e76e4f249fddff42123..485ff75d686b0916a8475aedb4d66aba4ede31e4 100644 (file)
@@ -305,7 +305,7 @@ main(void)
 
     /* Otherwise mark the CrackLib tests as skipped. */
     count = ARRAY_SIZE(cracklib_tests) + ARRAY_SIZE(length_tests);
-    skip_block(count * 2 + 1, "not built with CrackLib support");
+    skip_block(count * 2 + 2, "not built with CrackLib support");
 
 #    endif /* !HAVE_CRACKLIB */