Index: projects/bmake/lib/libcrypt/tests/Makefile.depend =================================================================== --- projects/bmake/lib/libcrypt/tests/Makefile.depend (nonexistent) +++ projects/bmake/lib/libcrypt/tests/Makefile.depend (revision 252195) @@ -0,0 +1,19 @@ +# Autogenerated - do NOT edit! + +DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} + +DIRDEPS = \ + gnu/lib/libgcc \ + include \ + include/xlocale \ + lib/${CSU_DIR} \ + lib/atf/libatf-c \ + lib/libc \ + lib/libcompiler_rt \ + + +.include + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif Property changes on: projects/bmake/lib/libcrypt/tests/Makefile.depend ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: projects/bmake/lib/libcrypt/tests/crypt_tests.c =================================================================== --- projects/bmake/lib/libcrypt/tests/crypt_tests.c (revision 252194) +++ projects/bmake/lib/libcrypt/tests/crypt_tests.c (revision 252195) @@ -1,54 +1,53 @@ #include __FBSDID("$FreeBSD$"); #include -#include #include -#include +#include #define LEET "0.s0.l33t" ATF_TC(md5); ATF_TC_HEAD(md5, tc) { atf_tc_set_md_var(tc, "descr", "Tests the MD5 based password hash"); } ATF_TC_BODY(md5, tc) { const char want[] = "$1$deadbeef$0Huu6KHrKLVWfqa4WljDE0"; char *pw; pw = crypt(LEET, want); ATF_CHECK_STREQ(pw, want); } ATF_TC(invalid); ATF_TC_HEAD(invalid, tc) { atf_tc_set_md_var(tc, "descr", "Tests that invalid password fails"); } ATF_TC_BODY(invalid, tc) { const char want[] = "$1$cafebabe$0Huu6KHrKLVWfqa4WljDE0"; char *pw; pw = crypt(LEET, want); ATF_CHECK(strcmp(pw, want) != 0); } /* * This function must not do anything except enumerate * the test cases, else atf-run is likely to be upset. */ ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, md5); ATF_TP_ADD_TC(tp, invalid); return atf_no_error(); }