crypt_tests.c (256281) | crypt_tests.c (256366) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: stable/10/lib/libcrypt/tests/crypt_tests.c 242713 2012-11-07 22:03:59Z sjg $"); | 2__FBSDID("$FreeBSD: stable/10/lib/libcrypt/tests/crypt_tests.c 256366 2013-10-12 06:08:18Z rpaulo $"); |
3 4#include <sys/types.h> 5#include <crypt.h> 6#include <unistd.h> 7 8#include <atf-c.h> 9 10#define LEET "0.s0.l33t" --- 27 unchanged lines hidden (view full) --- 38 char *pw; 39 40 pw = crypt(LEET, want); 41 ATF_CHECK(strcmp(pw, want) != 0); 42} 43 44/* 45 * This function must not do anything except enumerate | 3 4#include <sys/types.h> 5#include <crypt.h> 6#include <unistd.h> 7 8#include <atf-c.h> 9 10#define LEET "0.s0.l33t" --- 27 unchanged lines hidden (view full) --- 38 char *pw; 39 40 pw = crypt(LEET, want); 41 ATF_CHECK(strcmp(pw, want) != 0); 42} 43 44/* 45 * This function must not do anything except enumerate |
46 * the test cases, else atf-run is likely to be upset. | 46 * the test cases, per atf-c-api(3). |
47 */ 48ATF_TP_ADD_TCS(tp) 49{ 50 51 ATF_TP_ADD_TC(tp, md5); 52 ATF_TP_ADD_TC(tp, invalid); 53 return atf_no_error(); 54} | 47 */ 48ATF_TP_ADD_TCS(tp) 49{ 50 51 ATF_TP_ADD_TC(tp, md5); 52 ATF_TP_ADD_TC(tp, invalid); 53 return atf_no_error(); 54} |