Author: rodrigc
Date: Tue Dec  1 21:22:29 2015
New Revision: 291615
URL: https://svnweb.freebsd.org/changeset/base/291615

Log:
  Hack test so that it works on FreeBSD.

Modified:
  head/contrib/netbsd-tests/lib/libcrypt/t_crypt.c

Modified: head/contrib/netbsd-tests/lib/libcrypt/t_crypt.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libcrypt/t_crypt.c    Tue Dec  1 21:19:16 
2015        (r291614)
+++ head/contrib/netbsd-tests/lib/libcrypt/t_crypt.c    Tue Dec  1 21:22:29 
2015        (r291615)
@@ -124,11 +124,13 @@ ATF_TC_HEAD(crypt_salts, tc)
 ATF_TC_BODY(crypt_salts, tc)
 {
        for (size_t i = 0; tests[i].hash; i++) {
+               char *hash = crypt(tests[i].pw, tests[i].hash);
 #if defined(__FreeBSD__)
-               if (22 <= i)
+               if (i >= 22 && i != 24 && i != 25)
                        atf_tc_expect_fail("Old-style/bad inputs fail on 
FreeBSD");
+               else
+                       atf_tc_expect_pass();
 #endif
-               char *hash = crypt(tests[i].pw, tests[i].hash);
                if (!hash) {
                        ATF_CHECK_MSG(0, "Test %zu NULL\n", i);
                        continue;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to