Hack test so that it works on FreeBSD.
This commit is contained in:
parent
2cd2ff0e26
commit
26144b6164
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291615
@ -124,11 +124,13 @@ ATF_TC_HEAD(crypt_salts, tc)
|
|||||||
ATF_TC_BODY(crypt_salts, tc)
|
ATF_TC_BODY(crypt_salts, tc)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; tests[i].hash; i++) {
|
for (size_t i = 0; tests[i].hash; i++) {
|
||||||
#if defined(__FreeBSD__)
|
|
||||||
if (22 <= i)
|
|
||||||
atf_tc_expect_fail("Old-style/bad inputs fail on FreeBSD");
|
|
||||||
#endif
|
|
||||||
char *hash = crypt(tests[i].pw, tests[i].hash);
|
char *hash = crypt(tests[i].pw, tests[i].hash);
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
if (i >= 22 && i != 24 && i != 25)
|
||||||
|
atf_tc_expect_fail("Old-style/bad inputs fail on FreeBSD");
|
||||||
|
else
|
||||||
|
atf_tc_expect_pass();
|
||||||
|
#endif
|
||||||
if (!hash) {
|
if (!hash) {
|
||||||
ATF_CHECK_MSG(0, "Test %zu NULL\n", i);
|
ATF_CHECK_MSG(0, "Test %zu NULL\n", i);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user