diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-12-01 21:22:29 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-12-01 21:22:29 +0000 |
commit | c9ca3e566759fdf50014a30d16302b669c66fdcd (patch) | |
tree | b26dac5ea8a92795e53679d13df018416e9ab01c | |
parent | 5398e8ab98a98874f8ca06d46d8384ec9c160544 (diff) | |
download | FreeBSD-src-c9ca3e566759fdf50014a30d16302b669c66fdcd.zip FreeBSD-src-c9ca3e566759fdf50014a30d16302b669c66fdcd.tar.gz |
Hack test so that it works on FreeBSD.
-rw-r--r-- | contrib/netbsd-tests/lib/libcrypt/t_crypt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/netbsd-tests/lib/libcrypt/t_crypt.c b/contrib/netbsd-tests/lib/libcrypt/t_crypt.c index a5a4dcb..9b47692 100644 --- a/contrib/netbsd-tests/lib/libcrypt/t_crypt.c +++ b/contrib/netbsd-tests/lib/libcrypt/t_crypt.c @@ -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; |